Documentation : Tried to clarify comment on random conversion to short

Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
This commit is contained in:
Gabriel Ravier 2019-11-09 23:35:58 +01:00
parent 5b18283e5f
commit 058881e4eb

View file

@ -135,7 +135,7 @@ void DamageMyChar(int damage)
// Lose a whimsical star // Lose a whimsical star
if (gMC.equip & 0x80 && gMC.star > 0) if (gMC.equip & 0x80 && gMC.star > 0)
gMC.star = (short)gMC.star - 1; // For some reason, does a cast to short. Probably not accurate to the original source gMC.star = (short)gMC.star - 1; // For some reason, does a cast to short. Might not accurate to the original source (possibly, Pixel was just being careful about int size/conversion, or this is from some weird macro)
// Lose experience // Lose experience
if (gMC.equip & 4) if (gMC.equip & 4)