Mercurial > hg > early-roguelike
comparison 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 |
comparison
equal
deleted
inserted
replaced
310:827441d05b3e | 311:28e22fb35989 |
---|---|
130 } | 130 } |
131 } | 131 } |
132 | 132 |
133 /* Make sure we were not chasing a monster here */ | 133 /* Make sure we were not chasing a monster here */ |
134 th->t_dest = &hero; | 134 th->t_dest = &hero; |
135 if (on(*th, ISFRIENDLY), turn_off(*th, ISFLEE)); | 135 if (on(*th, ISFRIENDLY)) |
136 turn_off(*th, ISFLEE); | |
136 } | 137 } |
137 } | 138 } |
138 when BEARTRAP: | 139 when BEARTRAP: |
139 if (is_stealth(th)) { | 140 if (is_stealth(th)) { |
140 if (is_player) msg("You pass a bear trap."); | 141 if (is_player) msg("You pass a bear trap."); |
404 } | 405 } |
405 } | 406 } |
406 | 407 |
407 /* Make sure we were not chasing a monster here */ | 408 /* Make sure we were not chasing a monster here */ |
408 th->t_dest = &hero; | 409 th->t_dest = &hero; |
409 if (on(*th, ISFRIENDLY), turn_off(*th, ISFLEE)); | 410 if (on(*th, ISFRIENDLY)) |
411 turn_off(*th, ISFLEE); | |
410 } | 412 } |
411 else | 413 else |
412 killed(mitem, FALSE, FALSE, FALSE); | 414 killed(mitem, FALSE, FALSE, FALSE); |
413 } | 415 } |
414 } | 416 } |