diff options
author | Raphael Langella <raphael.langella@gmail.com> | 2011-01-26 17:02:08 +0100 |
---|---|---|
committer | Raphael Langella <raphael.langella@gmail.com> | 2011-01-26 23:04:05 +0100 |
commit | fde910b2445b6a60968aa3bfabbb89c456d7fb15 (patch) | |
tree | b120794ff08897f44ebf492928f5e1f2dcca8b8a /crawl-ref/source/invent.h | |
parent | 24b1396e00855a14d41d303df3894c81dc4ada87 (diff) | |
download | crawl-ref-fde910b2445b6a60968aa3bfabbb89c456d7fb15.tar.gz crawl-ref-fde910b2445b6a60968aa3bfabbb89c456d7fb15.zip |
Add a #define SLOT_BARE_HANDS for weapon unwield.
This replace the very hacky PROMPT_GOT_SPECIAL that was used for unwielding.
This commit also fix what appears to be a bug in l_item_do_remove which called
wield_weapon with -1 instead of -2 causing a weapon swap instead of unwielding.
I can't test it, because I don't know what calls it.
Diffstat (limited to 'crawl-ref/source/invent.h')
-rw-r--r-- | crawl-ref/source/invent.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/invent.h b/crawl-ref/source/invent.h index 392e2ad7d8..c0a3ec40a3 100644 --- a/crawl-ref/source/invent.h +++ b/crawl-ref/source/invent.h @@ -33,6 +33,8 @@ enum object_selector OSEL_CURSED_WORN = -15, }; +#define SLOT_BARE_HANDS -2 + #define PROMPT_ABORT -1 #define PROMPT_GOT_SPECIAL -2 #define PROMPT_NOTHING -3 |