comparison arogue7/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 f9ef86cf22b2
children 32bc72dcbf4f
comparison
equal deleted inserted replaced
303:e06ebc407615 304:e52a8a7ad4c5
17 * 17 *
18 */ 18 */
19 19
20 #include "curses.h" 20 #include "curses.h"
21 #include <ctype.h> 21 #include <ctype.h>
22 #include <stdlib.h>
22 #include <string.h> 23 #include <string.h>
23 #include "rogue.h" 24 #include "rogue.h"
24 #include "mach_dep.h" 25 #include "mach_dep.h"
25 26
26 27
291 */ 292 */
292 293
293 void 294 void
294 init_player(void) 295 init_player(void)
295 { 296 {
296 int stat_total, round, minimum, maximum, ch, i, j; 297 int stat_total, round, minimum, maximum, ch, i;
297 short do_escape, *our_stats[NUMABILITIES-1]; 298 short do_escape, *our_stats[NUMABILITIES-1];
299 #ifdef WIZARD
300 int j;
298 struct linked_list *weap_item, *armor_item; 301 struct linked_list *weap_item, *armor_item;
299 struct object *obj; 302 struct object *obj;
300 303
301 weap_item = armor_item = NULL; 304 weap_item = armor_item = NULL;
305 #endif
302 306
303 if (char_type == -1) { 307 if (char_type == -1) {
304 /* See what type character will be */ 308 /* See what type character will be */
305 wclear(hw); 309 wclear(hw);
306 touchwin(hw); 310 touchwin(hw);