Mercurial > hg > early-roguelike
diff arogue7/move.c @ 311:28e22fb35989
Fix one more batch of compiler warnings.
A few of these were potential bugs.
author | John "Elwin" Edwards |
---|---|
date | Tue, 04 May 2021 21:03:47 -0400 |
parents | e52a8a7ad4c5 |
children |
line wrap: on
line diff
--- a/arogue7/move.c Mon May 03 19:05:37 2021 -0400 +++ b/arogue7/move.c Tue May 04 21:03:47 2021 -0400 @@ -132,7 +132,8 @@ /* 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 @@ /* 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);