From 38f4816dab5c71b632cc06748f531282f158e91c Mon Sep 17 00:00:00 2001 From: haranp Date: Tue, 13 Nov 2007 12:37:07 +0000 Subject: '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 --- crawl-ref/source/stuff.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/stuff.cc') 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."); } } -- cgit v1.2.3-54-g00ecf