comparison rogue4/things.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 0250220d8cdd
children
comparison
equal deleted inserted replaced
303:e06ebc407615 304:e52a8a7ad4c5
285 /* 285 /*
286 * Only one genocide scroll allowed per game, so if it's 286 * Only one genocide scroll allowed per game, so if it's
287 * the second one, then turn it into a identify scroll 287 * the second one, then turn it into a identify scroll
288 */ 288 */
289 if (cur->o_which == S_GENOCIDE) 289 if (cur->o_which == S_GENOCIDE)
290 {
290 if (got_genocide) 291 if (got_genocide)
291 cur->o_which = S_IDENT; 292 cur->o_which = S_IDENT;
292 else 293 else
293 got_genocide = TRUE; 294 got_genocide = TRUE;
295 }
294 when 2: 296 when 2:
295 no_food = 0; 297 no_food = 0;
296 cur->o_type = FOOD; 298 cur->o_type = FOOD;
297 if (rnd(10) != 0) 299 if (rnd(10) != 0)
298 cur->o_which = 0; 300 cur->o_which = 0;