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:
nethack.allison
2002-01-20 15:07:56 +00:00
parent e2175c2ce1
commit ce63457151

View File

@@ -600,7 +600,7 @@ int spellnum;
shieldeff(u.ux, u.uy);
You_feel("momentarily dizzy.");
} else {
boolean oldprop = Confusion;
boolean oldprop = !!Confusion;
dmg = (int)mtmp->m_lev;
if (Half_spell_damage) dmg = (dmg + 1) / 2;