comparison rogue4/options.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 50b89f165a34
children
comparison
equal deleted inserted replaced
303:e06ebc407615 304:e52a8a7ad4c5
13 */ 13 */
14 14
15 #include <curses.h> 15 #include <curses.h>
16 #include <ctype.h> 16 #include <ctype.h>
17 #include <string.h> 17 #include <string.h>
18 #include <stdlib.h>
18 #include "rogue.h" 19 #include "rogue.h"
19 20
20 #define EQSTR(a, b, c) (strncmp(a, b, c) == 0) 21 #define EQSTR(a, b, c) (strncmp(a, b, c) == 0)
21 22
22 #define NUM_OPTS (sizeof optlist / sizeof (OPTION)) 23 #define NUM_OPTS (sizeof optlist / sizeof (OPTION))