Fix one more batch of compiler warnings.
A few of these were potential bugs.
This commit is contained in:
parent
3dfd8fd09b
commit
06cad9ee1e
14 changed files with 30 additions and 27 deletions
|
|
@ -132,7 +132,8 @@ be_trapped(struct thing *th, coord *tc)
|
|||
|
||||
/* Make sure we were not chasing a monster here */
|
||||
th->t_dest = &hero;
|
||||
if (on(*th, ISFRIENDLY), turn_off(*th, ISFLEE));
|
||||
if (on(*th, ISFRIENDLY))
|
||||
turn_off(*th, ISFLEE);
|
||||
}
|
||||
}
|
||||
when BEARTRAP:
|
||||
|
|
@ -406,7 +407,8 @@ be_trapped(struct thing *th, coord *tc)
|
|||
|
||||
/* Make sure we were not chasing a monster here */
|
||||
th->t_dest = &hero;
|
||||
if (on(*th, ISFRIENDLY), turn_off(*th, ISFLEE));
|
||||
if (on(*th, ISFRIENDLY))
|
||||
turn_off(*th, ISFLEE);
|
||||
}
|
||||
else
|
||||
killed(mitem, FALSE, FALSE, FALSE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue