summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-09-17 09:58:14 +0200
committerBardur Arantsson <bardur@scientician.net>2016-09-17 09:58:14 +0200
commitd52879d4ed58423e1e9ccc7f5dc34d237a295527 (patch)
tree50adeff497e50e54658fc24f39461b2e3ba160f7
parente569b328d76c7437018eb11efcc0aa10bbd91de6 (diff)
Use 'bool' in random_spell struct
-rw-r--r--src/cmd7.cc2
-rw-r--r--src/random_spell.hpp2
-rw-r--r--src/spells1.cc2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd7.cc b/src/cmd7.cc
index aaec34b7..2d9ae191 100644
--- a/src/cmd7.cc
+++ b/src/cmd7.cc
@@ -1608,7 +1608,7 @@ void do_cmd_powermage(void)
p_ptr->csp -= s_ptr->mana;
- s_ptr->untried = FALSE;
+ s_ptr->untried = false;
proj_flags = s_ptr->proj_flags;
/* Hack -- Spell needs a target */
diff --git a/src/random_spell.hpp b/src/random_spell.hpp
index 01b5ba5e..2c814c9f 100644
--- a/src/random_spell.hpp
+++ b/src/random_spell.hpp
@@ -17,5 +17,5 @@ struct random_spell
byte dam_sides;
byte dam_dice;
byte level; /* Level needed */
- bool_ untried; /* Is the spell was tried? */
+ bool untried; /* Is the spell was tried? */
};
diff --git a/src/spells1.cc b/src/spells1.cc
index 7cedf83b..1fe14c5a 100644
--- a/src/spells1.cc
+++ b/src/spells1.cc
@@ -8953,7 +8953,7 @@ void generate_spell(int plev)
rspell->level = plev;
rspell->mana = mana;
- rspell->untried = TRUE;
+ rspell->untried = true;
/* Spells are always maximally destructive. */
rspell->proj_flags = PROJECT_KILL | PROJECT_ITEM | PROJECT_GRID;