summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/object1.cc2
-rw-r--r--src/store.cc12
-rw-r--r--src/util.cc12
-rw-r--r--src/variable.cc2
-rw-r--r--src/variable.hpp2
5 files changed, 15 insertions, 15 deletions
diff --git a/src/object1.cc b/src/object1.cc
index b976369d..96a2179c 100644
--- a/src/object1.cc
+++ b/src/object1.cc
@@ -3045,7 +3045,7 @@ bool_ object_out_desc(object_type *o_ptr, FILE *fff, bool_ trim_down, bool_ wait
/* Restore the screen */
Term_load();
}
- character_icky = FALSE;
+ character_icky = false;
}
diff --git a/src/store.cc b/src/store.cc
index 59bac276..fde832d9 100644
--- a/src/store.cc
+++ b/src/store.cc
@@ -3219,7 +3219,7 @@ void do_cmd_store()
/* Hack -- Character is in "icky" mode */
- character_icky = TRUE;
+ character_icky = true;
/* No command argument */
@@ -3294,7 +3294,7 @@ void do_cmd_store()
if (store_process_command()) recreate = TRUE;
/* Hack -- Character is still in "icky" mode */
- character_icky = TRUE;
+ character_icky = true;
/* Notice stuff */
notice_stuff();
@@ -3388,7 +3388,7 @@ void do_cmd_store()
}
/* Hack -- Character is no longer in "icky" mode */
- character_icky = FALSE;
+ character_icky = false;
/* Hack -- Cancel automatic command */
@@ -3660,7 +3660,7 @@ void do_cmd_home_trump()
/* Hack -- Character is in "icky" mode */
- character_icky = TRUE;
+ character_icky = true;
/* No command argument */
@@ -3748,7 +3748,7 @@ void do_cmd_home_trump()
store_process_command();
/* Hack -- Character is still in "icky" mode */
- character_icky = TRUE;
+ character_icky = true;
/* Notice stuff */
notice_stuff();
@@ -3830,7 +3830,7 @@ void do_cmd_home_trump()
/* Hack -- Character is no longer in "icky" mode */
- character_icky = FALSE;
+ character_icky = false;
/* Hack -- Cancel automatic command */
diff --git a/src/util.cc b/src/util.cc
index 13acf7f8..c25045fd 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -1929,14 +1929,14 @@ void screen_save()
/* Save the screen (if legal) */
if (screen_depth++ == 0) Term_save();
- /* Increase "icky" depth */
- character_icky++;
+ /* Enter "icky" mode */
+ character_icky = true;
}
void screen_save_no_flush()
{
/* Enter "icky" mode */
- character_icky = TRUE;
+ character_icky = true;
/* Save the screen */
Term_save();
@@ -1955,8 +1955,8 @@ void screen_load()
/* Load the screen (if legal) */
if (--screen_depth == 0) Term_load();
- /* Decrease "icky" depth */
- character_icky--;
+ /* Leave "icky" mode */
+ character_icky = false;
}
void screen_load_no_flush()
@@ -1965,7 +1965,7 @@ void screen_load_no_flush()
Term_load();
/* Leave "icky" mode */
- character_icky = FALSE;
+ character_icky = false;
}
diff --git a/src/variable.cc b/src/variable.cc
index c93725d6..5aa45427 100644
--- a/src/variable.cc
+++ b/src/variable.cc
@@ -29,7 +29,7 @@ bool_ character_generated; /* The character exists */
bool character_dungeon; /* The character has a dungeon */
bool character_loaded; /* The character was loaded from a savefile */
-bool_ character_icky; /* The game is in an icky full screen mode */
+bool character_icky = false; /* The game is in an icky full screen mode */
bool character_xtra; /* The game is in an icky startup mode */
seed_t &seed_flavor()
diff --git a/src/variable.hpp b/src/variable.hpp
index 57fc1e8e..cdef5848 100644
--- a/src/variable.hpp
+++ b/src/variable.hpp
@@ -202,6 +202,6 @@ extern term *angband_term[ANGBAND_TERM_MAX];
extern char angband_term_name[ANGBAND_TERM_MAX][80];
extern byte angband_color_table[256][4];
extern bool_ character_generated;
-extern bool_ character_icky;
+extern bool character_icky;
extern bool_ inkey_flag;
extern bool_ msg_flag;