comparison srogue/rings.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 e7862a021609
children
comparison
equal deleted inserted replaced
303:e06ebc407615 304:e52a8a7ad4c5
286 */ 286 */
287 int 287 int
288 ring_eat(void) 288 ring_eat(void)
289 { 289 {
290 reg struct object *lb; 290 reg struct object *lb;
291 reg int hand, i, howmuch; 291 reg int i, howmuch;
292 bool addit; 292 bool addit;
293 293
294 howmuch = 0; 294 howmuch = 0;
295 addit = TRUE; 295 addit = TRUE;
296 for (i = LEFT; i <= RIGHT ; i += 1) { 296 for (i = LEFT; i <= RIGHT ; i += 1) {