Mercurial > hg > early-roguelike
comparison arogue7/scrolls.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 | f9ef86cf22b2 |
children |
comparison
equal
deleted
inserted
replaced
303:e06ebc407615 | 304:e52a8a7ad4c5 |
---|---|
30 genocide(void) | 30 genocide(void) |
31 { | 31 { |
32 register struct linked_list *ip; | 32 register struct linked_list *ip; |
33 register struct thing *mp; | 33 register struct thing *mp; |
34 register struct linked_list *nip; | 34 register struct linked_list *nip; |
35 register int num_monst = NUMMONST-NUMUNIQUE-1, /* cannot genocide uniques */ | |
36 pres_monst=1, | |
37 num_lines=2*(lines-3); | |
38 register int which_monst; | 35 register int which_monst; |
39 | 36 |
40 which_monst = makemonster(FALSE, "Genocide", "wipe out"); | 37 which_monst = makemonster(FALSE, "Genocide", "wipe out"); |
41 if (which_monst <= 0) { | 38 if (which_monst <= 0) { |
42 msg(""); | 39 msg(""); |