Use TRUE or FALSE for booleans
This commit is contained in:
@@ -802,7 +802,7 @@ extcmd_via_menu(void)
|
||||
"Exceeded %d extended commands in doextcmd() menu; 'extmenu' disabled.",
|
||||
MAX_EXT_CMD);
|
||||
#endif /* NH_DEVEL_STATUS != NH_STATUS_RELEASED */
|
||||
iflags.extmenu = 0;
|
||||
iflags.extmenu = FALSE;
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -880,7 +880,7 @@ panic VA_DECL(const char *, str)
|
||||
if (soundprocs.sound_exit_nhsound)
|
||||
(*soundprocs.sound_exit_nhsound)("panic");
|
||||
exit_nhwindows((char *) 0);
|
||||
iflags.window_inited = 0; /* they're gone; force raw_print()ing */
|
||||
iflags.window_inited = FALSE; /* they're gone; force raw_print()ing */
|
||||
}
|
||||
|
||||
raw_print(gp.program_state.gameover
|
||||
@@ -1611,7 +1611,7 @@ really_done(int how)
|
||||
done_stopprint++;
|
||||
#endif
|
||||
/* render vision subsystem inoperative */
|
||||
iflags.vision_inited = 0;
|
||||
iflags.vision_inited = FALSE;
|
||||
|
||||
/* maybe use up active invent item(s), place thrown/kicked missile,
|
||||
deal with ball and chain possibly being temporarily off the map */
|
||||
@@ -1839,7 +1839,7 @@ really_done(int how)
|
||||
if (WIN_INVEN != WIN_ERR) {
|
||||
destroy_nhwindow(WIN_INVEN), WIN_INVEN = WIN_ERR;
|
||||
/* precaution in case any late update_inventory() calls occur */
|
||||
iflags.perm_invent = 0;
|
||||
iflags.perm_invent = FALSE;
|
||||
}
|
||||
display_nhwindow(WIN_MESSAGE, TRUE);
|
||||
destroy_nhwindow(WIN_MAP), WIN_MAP = WIN_ERR;
|
||||
|
||||
@@ -199,7 +199,7 @@ more_experienced(register int exper, register int rexp)
|
||||
#endif
|
||||
}
|
||||
if (u.urexp >= (Role_if(PM_WIZARD) ? 1000 : 2000))
|
||||
flags.beginner = 0;
|
||||
flags.beginner = FALSE;
|
||||
}
|
||||
|
||||
/* e.g., hit by drain life attack */
|
||||
|
||||
@@ -606,7 +606,7 @@ u_init(void)
|
||||
struct u_roleplay tmpuroleplay = u.uroleplay; /* set by rcfile options */
|
||||
|
||||
flags.female = flags.initgend;
|
||||
flags.beginner = 1;
|
||||
flags.beginner = TRUE;
|
||||
|
||||
/* zero u, including pointer values --
|
||||
* necessary when aborting from a failed restore */
|
||||
|
||||
@@ -255,7 +255,7 @@ vision_reset(void)
|
||||
}
|
||||
}
|
||||
|
||||
iflags.vision_inited = 1; /* vision is ready */
|
||||
iflags.vision_inited = TRUE; /* vision is ready */
|
||||
gv.vision_full_recalc = 1; /* we want to run vision_recalc() */
|
||||
}
|
||||
|
||||
|
||||
@@ -652,7 +652,7 @@ hup_exit_nhwindows(const char *lastgasp)
|
||||
(*previnterface_exit_nhwindows)(lastgasp);
|
||||
previnterface_exit_nhwindows = 0;
|
||||
}
|
||||
iflags.window_inited = 0;
|
||||
iflags.window_inited = FALSE;
|
||||
}
|
||||
|
||||
static int
|
||||
@@ -691,7 +691,7 @@ hup_getlin(const char *prompt UNUSED, char *outbuf)
|
||||
static void
|
||||
hup_init_nhwindows(int *argc_p UNUSED, char **argv UNUSED)
|
||||
{
|
||||
iflags.window_inited = 1;
|
||||
iflags.window_inited = TRUE;
|
||||
}
|
||||
|
||||
/*ARGUSED*/
|
||||
|
||||
Reference in New Issue
Block a user