diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-09-17 09:58:14 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-09-17 09:58:14 +0200 |
commit | 6006546b4d015619b7d119d400fac819da6bc826 (patch) | |
tree | 2a1704a5c22cf2485917185316af0a5417a3de55 /src/spells2.cc | |
parent | 6adef091b0713941e1149ecf21a5ab6feee3b06d (diff) |
Factor out 'flush_failure' option handling
Diffstat (limited to 'src/spells2.cc')
-rw-r--r-- | src/spells2.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spells2.cc b/src/spells2.cc index 45fd18eb..5fd21698 100644 --- a/src/spells2.cc +++ b/src/spells2.cc @@ -2910,7 +2910,7 @@ bool_ enchant_spell(int num_hit, int num_dam, int num_ac, int num_pval) if (!okay) { /* Flush */ - if (flush_failure) flush(); + flush_on_failure(); /* Message */ msg_print("The enchantment failed."); |