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

@@ -370,9 +370,9 @@ do_pit: chasm = maketrap(x,y,PIT);
exercise(A_DEX, TRUE);
else
selftouch((Upolyd &&
slithy(youmonst.data) ||
nolimbs(youmonst.data)) ?
"Shaken, you" : "Falling down, you");
(slithy(youmonst.data) ||
nolimbs(youmonst.data))) ?
"Shaken, you" : "Falling down, you");
}
} else newsym(x,y);
break;