Mercurial > hg > early-roguelike
comparison srogue/init.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 | 94a0d9dd5ce1 |
children |
comparison
equal
deleted
inserted
replaced
303:e06ebc407615 | 304:e52a8a7ad4c5 |
---|---|
120 */ | 120 */ |
121 void | 121 void |
122 init_colors(void) | 122 init_colors(void) |
123 { | 123 { |
124 reg int i, j; | 124 reg int i, j; |
125 reg char *str; | |
126 bool used[NCOLORS]; | 125 bool used[NCOLORS]; |
127 | 126 |
128 for (i = 0; i < NCOLORS; i++) | 127 for (i = 0; i < NCOLORS; i++) |
129 used[i] = FALSE; | 128 used[i] = FALSE; |
130 for (i = 0; i < MAXPOTIONS; i++) { | 129 for (i = 0; i < MAXPOTIONS; i++) { |
183 | 182 |
184 void | 183 void |
185 init_stones(void) | 184 init_stones(void) |
186 { | 185 { |
187 reg int i, j; | 186 reg int i, j; |
188 reg char *str; | |
189 bool used[NSTONES]; | 187 bool used[NSTONES]; |
190 | 188 |
191 for (i = 0; i < NSTONES; i++) | 189 for (i = 0; i < NSTONES; i++) |
192 used[i] = FALSE; | 190 used[i] = FALSE; |
193 | 191 |