diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-11-13 12:37:07 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-11-13 12:37:07 +0000 |
commit | 38f4816dab5c71b632cc06748f531282f158e91c (patch) | |
tree | 4984aa0b0d734a18a8833136df0874261520163a /crawl-ref/source/stuff.cc | |
parent | f19ffb0cf2b7db6897674d73191525cb54831723 (diff) | |
download | crawl-ref-38f4816dab5c71b632cc06748f531282f158e91c.tar.gz crawl-ref-38f4816dab5c71b632cc06748f531282f158e91c.zip |
'q' (or Escape) when prompted for food on the floor now cancels out of
eating completely, rather than moving to inventory.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2847 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/stuff.cc')
-rw-r--r-- | crawl-ref/source/stuff.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/stuff.cc b/crawl-ref/source/stuff.cc index 29c03cd096..bd81b38303 100644 --- a/crawl-ref/source/stuff.cc +++ b/crawl-ref/source/stuff.cc @@ -14,6 +14,7 @@ */ #include "AppHdr.h" +#include "cio.h" #include "database.h" #include "direct.h" #include "message.h" @@ -776,7 +777,7 @@ int yesnoquit( const char* str, bool safe, int safeanswer, bool clear_after ) int tmp = getchm(KC_CONFIRM); - if ( tmp == ESCAPE || tmp == 'q' || tmp == 'Q' ) + if ( tmp == CK_ESCAPE || tmp == 'q' || tmp == 'Q' ) return -1; if ((tmp == ' ' || tmp == '\r' || tmp == '\n') && safeanswer) @@ -797,7 +798,7 @@ int yesnoquit( const char* str, bool safe, int safeanswer, bool clear_after ) else if (tmp == 'Y') return 1; else - mpr("[Y]es or [N]o only, please."); + mpr("[Y]es, [N]o or [Q]uit only, please."); } } |