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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user