forget_lite(player_ptr->current_floor_ptr);
forget_view(player_ptr->current_floor_ptr);
- current_world_ptr->character_icky++;
+ current_world_ptr->character_icky = TRUE;
command_arg = 0;
command_rep = 0;
if (reinit_wilderness) player_ptr->leaving = TRUE;
- current_world_ptr->character_icky--;
+ current_world_ptr->character_icky = FALSE;
term_clear();
player_ptr->update |= (PU_VIEW | PU_MONSTERS | PU_BONUS | PU_LITE | PU_MON_LITE);
/*
* Hack -- play games with "bool"
*/
+#if __STDC_VERSION__ < 199901L
#undef bool
+#endif
/*
* Include the proper "header" file
POSITION y;
POSITION x_br_lite;
POSITION y_br_lite;
- bool do_spell;
+ mspell_lite_type do_spell;
bool in_no_magic_dungeon;
bool success;
byte mspells[96];
/* A signed byte of memory */
/* typedef signed char syte; */
typedef unsigned char byte; /*!< byte型をunsighned charとして定義 / Note that unsigned values can cause math problems / An unsigned byte of memory */
+#if __STDC_VERSION__ >= 199901L
+#include <stdbool.h>
+#else
typedef char bool; /*!< bool型をcharとして定義 / Note that a bool is smaller than a full "int" / Simple True/False type */
+#endif
typedef unsigned int uint; /* uint型をintとして定義 / An unsigned, "standard" integer (often pre-defined) */
/* The largest possible unsigned integer */
if (screen_depth++ == 0)
term_save();
- current_world_ptr->character_icky++;
+ current_world_ptr->character_icky = TRUE;
}
/*
if (--screen_depth == 0)
term_load();
- current_world_ptr->character_icky--;
+ current_world_ptr->character_icky = FALSE;
}
/*
term_xtra(TERM_XTRA_CLEAR, 0);
/* clear all "cursor" data */
- old->cv = old->cu = old->cx = old->cy = 0;
+ old->cv = old->cu = FALSE;
+ old->cx = old->cy = 0;
/* Wipe each row */
for (TERM_LEN y = 0; y < h; y++) {