summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stuff.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-23 15:15:10 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-23 15:15:10 +0000
commite48766e842f0586ce575268ee7127f58d6d29f51 (patch)
tree6611db85325871347e8500c65b7fc5b255257e66 /crawl-ref/source/stuff.cc
parent7b9c8f3ef0a491779f4a3100425cee9c227ab6ff (diff)
downloadcrawl-ref-e48766e842f0586ce575268ee7127f58d6d29f51.tar.gz
crawl-ref-e48766e842f0586ce575268ee7127f58d6d29f51.zip
Apply beam tracer prompt to helpless/fleeing etc. creatures when
worshipping an appropriate god. I'm simply reusing dolorous unchivalric methods here. :) Also, don't prompt for harmless beams. Still TODO: Make the message differentiate between target and obstacles, and clean up the code a bit. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5193 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/stuff.cc')
-rw-r--r--crawl-ref/source/stuff.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/stuff.cc b/crawl-ref/source/stuff.cc
index 51cd1685c9..128a19de34 100644
--- a/crawl-ref/source/stuff.cc
+++ b/crawl-ref/source/stuff.cc
@@ -909,7 +909,7 @@ bool yesno( const char *str, bool safe, int safeanswer, bool clear_after,
while (true)
{
- if ( !noprompt )
+ if (!noprompt)
mpr(prompt.c_str(), MSGCH_PROMPT);
int tmp = getchm(KC_CONFIRM);
@@ -925,7 +925,7 @@ bool yesno( const char *str, bool safe, int safeanswer, bool clear_after,
if (Options.easy_confirm == CONFIRM_ALL_EASY
|| tmp == safeanswer
- || (Options.easy_confirm == CONFIRM_SAFE_EASY && safe))
+ || Options.easy_confirm == CONFIRM_SAFE_EASY && safe)
{
tmp = toupper( tmp );
}