gcc compilation warning bits

This commit is contained in:
cohrs
2007-02-10 17:37:17 +00:00
parent 10e24ceeae
commit 33fde404e7
3 changed files with 6 additions and 2 deletions

View File

@@ -107,7 +107,7 @@ struct monst *mon;
o = is_you ? invent : mon->minvent;
slotmask = W_ARMOR | W_RING | W_AMUL | W_TOOL;
if (!is_you || /* assumes monsters don't wield non-weapons */
uwep && (uwep->oclass == WEAPON_CLASS || is_weptool(uwep)))
(uwep && (uwep->oclass == WEAPON_CLASS || is_weptool(uwep))))
slotmask |= W_WEP;
if (is_you && u.twoweap) slotmask |= W_SWAPWEP;
for ( ; o; o = o->nobj)
@@ -144,7 +144,7 @@ struct monst *mon;
o = is_you ? invent : mon->minvent;
slotmask = W_ARMOR | W_RING | W_AMUL | W_TOOL;
if (!is_you || /* assumes monsters don't wield non-weapons */
uwep && (uwep->oclass == WEAPON_CLASS || is_weptool(uwep)))
(uwep && (uwep->oclass == WEAPON_CLASS || is_weptool(uwep))))
slotmask |= W_WEP;
if (is_you && u.twoweap) slotmask |= W_SWAPWEP;
for ( ; o; o = o->nobj)