summaryrefslogtreecommitdiff
path: root/src/spells4.cc
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
commit6006546b4d015619b7d119d400fac819da6bc826 (patch)
tree2a1704a5c22cf2485917185316af0a5417a3de55 /src/spells4.cc
parent6adef091b0713941e1149ecf21a5ab6feee3b06d (diff)
Factor out 'flush_failure' option handling
Diffstat (limited to 'src/spells4.cc')
-rw-r--r--src/spells4.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/spells4.cc b/src/spells4.cc
index 62586758..199aea98 100644
--- a/src/spells4.cc
+++ b/src/spells4.cc
@@ -512,10 +512,7 @@ void lua_cast_school_spell(s32b s, bool_ no_cost)
/* failures are dangerous; we'll flush the input buffer
so it isn't missed. */
- if (flush_failure)
- {
- flush();
- }
+ flush_on_failure();
msg_print("You failed to get the spell off!");
}