summaryrefslogtreecommitdiff
path: root/src/spells4.cc
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2019-02-15 19:20:25 +0100
committerBardur Arantsson <bardur@scientician.net>2019-02-15 19:20:25 +0100
commitcf174d71d2b56fb40248d96707090a484b4957fc (patch)
treeca2666f5f0aabca22b45f2f87baf19be296ac0af /src/spells4.cc
parent79d1633d51015b2a9224dece9da083ff1ab8b7c2 (diff)
Search/replace bool_ with bool
We also search/replace TRUE/FALSE with their bool equivalents.
Diffstat (limited to 'src/spells4.cc')
-rw-r--r--src/spells4.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/spells4.cc b/src/spells4.cc
index 1b73d573..6305439e 100644
--- a/src/spells4.cc
+++ b/src/spells4.cc
@@ -445,9 +445,9 @@ int print_spell(const char *label_, byte color, int y, s32b s)
return y + 1;
}
-void lua_cast_school_spell(s32b s, bool_ no_cost)
+void lua_cast_school_spell(s32b s, bool no_cost)
{
- bool_ use = FALSE;
+ bool use = false;
spell_type *spell = spell_at(s);
/* No magic? */
@@ -504,7 +504,7 @@ void lua_cast_school_spell(s32b s, bool_ no_cost)
}
else
{
- use = TRUE;
+ use = true;
/* failures are dangerous; we'll flush the input buffer
so it isn't missed. */
@@ -519,7 +519,7 @@ void lua_cast_school_spell(s32b s, bool_ no_cost)
}
/* Use the mana/piety */
- if (use == TRUE)
+ if (use == true)
{
/* Reduce mana */
adjust_power(s, -get_mana(s));