Mercurial > hg > early-roguelike
comparison rogue3/command.c @ 304:e52a8a7ad4c5
Fix many compiler warnings.
There should only be two changes in behavior:
arogue7/fight.c, arogue7/fight.c: a to-hit bonus is now correctly
applied to characters who are not monks instead of monks who are not
empty-handed.
urogue/fight.c: fixed an interaction with the "debug" macro that could
cause the wrong message to be displayed.
author | John "Elwin" Edwards |
---|---|
date | Wed, 14 Apr 2021 18:55:33 -0400 |
parents | 47aeaccbb953 |
children | c03d0b87211c |
comparison
equal
deleted
inserted
replaced
303:e06ebc407615 | 304:e52a8a7ad4c5 |
---|---|
201 wizard = FALSE; | 201 wizard = FALSE; |
202 msg("Not wizard any more"); | 202 msg("Not wizard any more"); |
203 } | 203 } |
204 else | 204 else |
205 { | 205 { |
206 if (wizard = passwd()) | 206 if ( (wizard = passwd()) ) |
207 { | 207 { |
208 msg("You are suddenly as smart as Ken Arnold in dungeon #%d", dnum); | 208 msg("You are suddenly as smart as Ken Arnold in dungeon #%d", dnum); |
209 wizard = TRUE; | 209 wizard = TRUE; |
210 waswizard = TRUE; | 210 waswizard = TRUE; |
211 } | 211 } |