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