gcc compilation warning bits

some rather complex boolean operations needed more parentheses to avoid
warnings.  I think I put them in the right places.
A couple other items: naked assignments in if stmts, and an extra function decl
This commit is contained in:
cohrs
2006-04-25 04:08:22 +00:00
parent 3e2f7f946d
commit c654fef3ff
3 changed files with 18 additions and 18 deletions

View File

@@ -2129,9 +2129,9 @@ boolean by_you;
/* monsters can also use potions of acid */
if (obj->otyp == POT_ACID ||
((obj->otyp == CORPSE || (obj->otyp == TIN && tinok)) &&
obj->corpsenm == PM_LIZARD ||
(acidic(&mons[obj->corpsenm]) &&
obj->corpsenm != PM_GREEN_SLIME))) {
(obj->corpsenm == PM_LIZARD ||
(acidic(&mons[obj->corpsenm]) &&
obj->corpsenm != PM_GREEN_SLIME)))) {
mon_consume_unstone(mon, obj, by_you, TRUE);
return TRUE;
}