Clear a warning
src/mcastu.c(603) : warning C4244: 'initializing' : conversion from 'long ' to 'char ', possible loss of data M. Allison
This commit is contained in:
+1
-1
@@ -600,7 +600,7 @@ int spellnum;
|
|||||||
shieldeff(u.ux, u.uy);
|
shieldeff(u.ux, u.uy);
|
||||||
You_feel("momentarily dizzy.");
|
You_feel("momentarily dizzy.");
|
||||||
} else {
|
} else {
|
||||||
boolean oldprop = Confusion;
|
boolean oldprop = !!Confusion;
|
||||||
|
|
||||||
dmg = (int)mtmp->m_lev;
|
dmg = (int)mtmp->m_lev;
|
||||||
if (Half_spell_damage) dmg = (dmg + 1) / 2;
|
if (Half_spell_damage) dmg = (dmg + 1) / 2;
|
||||||
|
|||||||
Reference in New Issue
Block a user