summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-16 01:30:06 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-16 01:30:06 +0000
commitd6dc4cd62e84baedf1b9e8885f2f7c1685c3f52d (patch)
treec615891181b5734d20b373b87ef6f4d506406425
parent925cde834062d98bb6ffbd20a5e9734e879d97ba (diff)
downloadcrawl-ref-d6dc4cd62e84baedf1b9e8885f2f7c1685c3f52d.tar.gz
crawl-ref-d6dc4cd62e84baedf1b9e8885f2f7c1685c3f52d.zip
Merge r7840: fix for bug 2430493: forget about interrupted butchering when
doing auto-explore or inter-level travel. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.4@7841 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/travel.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/travel.cc b/crawl-ref/source/travel.cc
index 0faca23a84..08083eeb90 100644
--- a/crawl-ref/source/travel.cc
+++ b/crawl-ref/source/travel.cc
@@ -2496,6 +2496,9 @@ void start_translevel_travel(bool prompt_for_destination)
if (level_target.p.id.depth > 0)
{
+ // Forget interrupted butchering.
+ you.attribute[ATTR_WEAPON_SWAP_INTERRUPTED] = 0;
+
you.running = RMODE_INTERLEVEL;
you.running.x = you.running.y = 0;
last_stair.depth = -1;
@@ -2919,6 +2922,9 @@ void start_explore(bool grab_items)
if (!i_feel_safe(true, true))
return;
+ // Forget interrupted butchering.
+ you.attribute[ATTR_WEAPON_SWAP_INTERRUPTED] = 0;
+
you.running = grab_items? RMODE_EXPLORE_GREEDY : RMODE_EXPLORE;
if (you.running == RMODE_EXPLORE_GREEDY
&& Options.stash_tracking != STM_ALL)