comparison xrogue/main.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 3d4252fa2ed3
children 827441d05b3e
comparison
equal deleted inserted replaced
303:e06ebc407615 304:e52a8a7ad4c5
34 34
35 int 35 int
36 main(int argc, char *argv[], char *envp[]) 36 main(int argc, char *argv[], char *envp[])
37 { 37 {
38 register char *env; 38 register char *env;
39 time_t now;
40 39
41 md_init(); 40 md_init();
42 41
43 /* 42 /*
44 * get home and options from environment 43 * get home and options from environment
230 waswizard = wizard; 229 waswizard = wizard;
231 230
232 draw(cw); 231 draw(cw);
233 /* A super wizard doesn't have to get equipped */ 232 /* A super wizard doesn't have to get equipped */
234 /* Check if "" option is TRUE and get environment flag */ 233 /* Check if "" option is TRUE and get environment flag */
235 if (wizard && strcmp(getenv("SUPER"),"YES") == 0 || 234 if ((wizard && strcmp(getenv("SUPER"),"YES") == 0) || def_attr == TRUE) {
236 def_attr == TRUE) {
237 level = 1; 235 level = 1;
238 new_level(NORMLEV); 236 new_level(NORMLEV);
239 } 237 }
240 else 238 else
241 new_level(STARTLEV); /* Draw current level */ 239 new_level(STARTLEV); /* Draw current level */