diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-03 13:55:43 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-03 13:55:43 +0000 |
commit | 7a242f8e4ab1ab615cadcbf280de0ddd99754b0a (patch) | |
tree | 003089e0ce290ec32c64162bfe9b49799ee8d3ce /crawl-ref/source/delay.cc | |
parent | 240d2022a003e137a8f32e7dd8985e8cb2871f8b (diff) | |
download | crawl-ref-7a242f8e4ab1ab615cadcbf280de0ddd99754b0a.tar.gz crawl-ref-7a242f8e4ab1ab615cadcbf280de0ddd99754b0a.zip |
Fix a bug with swap_when_safe, and experimentally default
chunks_autopickup, swap_when_safe, and show_beam to true.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5457 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/delay.cc')
-rw-r--r-- | crawl-ref/source/delay.cc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/crawl-ref/source/delay.cc b/crawl-ref/source/delay.cc index 5c149ad9da..151fa3947e 100644 --- a/crawl-ref/source/delay.cc +++ b/crawl-ref/source/delay.cc @@ -377,7 +377,7 @@ void stop_delay( bool stop_stair_travel ) delay.type == DELAY_BOTTLE_BLOOD ? "bottling blood from" : "sacrificing"); - // Corpse keeps track of work in plus2 field, see handle_delay() -- bwr + // Corpse keeps track of work in plus2 field, see handle_delay(). -- bwr if (butcher_swap_warn) { std::string weapon; @@ -393,12 +393,19 @@ void stop_delay( bool stop_stair_travel ) (multiple_corpses ? "s" : ""), weapon.c_str()); if (Options.swap_when_safe) + { + // XXX: This is a hack! + // (Necessary because attributes are unsigned chars.) you.attribute[ATTR_WEAPON_SWAP_INTERRUPTED] - = butcher_swap_weapon; + = (butcher_swap_weapon == -1 ? ENDOFPACK + : butcher_swap_weapon); + } } else + { mprf("You stop %s the corpse%s.", butcher_verb.c_str(), multiple_corpses ? "s" : ""); + } pop_delay(); break; |