From 6006546b4d015619b7d119d400fac819da6bc826 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Sat, 17 Sep 2016 09:58:14 +0200 Subject: Factor out 'flush_failure' option handling --- src/spells4.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/spells4.cc') 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!"); } -- cgit v1.2.3 From cbafbc638c2e1d5bb40ee6bc419007062e9615e4 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Wed, 5 Oct 2016 18:45:09 +0200 Subject: Remove traps Credit goes mostly to "miramor" who did most of the actual work. I just did a few minor tweaks and fixes + rebased onto master. --- src/spells4.cc | 1 - 1 file changed, 1 deletion(-) (limited to 'src/spells4.cc') diff --git a/src/spells4.cc b/src/spells4.cc index 199aea98..97c3d523 100644 --- a/src/spells4.cc +++ b/src/spells4.cc @@ -210,7 +210,6 @@ void init_school_books() push_spell(TOME_TRANSLOCATION, RECALL); push_spell(TOME_TRANSLOCATION, TELEAWAY); push_spell(TOME_TRANSLOCATION, TELEPORT); - push_spell(TOME_TRANSLOCATION, DISARM); push_spell(TOME_TRANSLOCATION, BLINK); /* Create the book of the tree */ -- cgit v1.2.3