summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells4.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2007-12-11 03:55:14 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2007-12-11 03:55:14 +0000
commitfdd102c5c9b88102b31cea30eeba7e1e41a351ff (patch)
tree15c9889ad51527f760f5925930bbaa682930c744 /crawl-ref/source/spells4.cc
parent823af63f75d423d245b627f0625210148b69c416 (diff)
downloadcrawl-ref-fdd102c5c9b88102b31cea30eeba7e1e41a351ff.tar.gz
crawl-ref-fdd102c5c9b88102b31cea30eeba7e1e41a351ff.zip
Display "You detect nothing." if you cast Detect Secret Doors and no
secret doors are found. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3042 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells4.cc')
-rw-r--r--crawl-ref/source/spells4.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/crawl-ref/source/spells4.cc b/crawl-ref/source/spells4.cc
index f5fd7c9271..2d12fbe7be 100644
--- a/crawl-ref/source/spells4.cc
+++ b/crawl-ref/source/spells4.cc
@@ -439,7 +439,7 @@ void cast_detect_secret_doors(int pow)
if (x < 5 || x > GXM - 5 || y < 5 || y > GYM - 5)
continue;
- if (!see_grid(x, y))
+ if (!see_grid(x, y))
continue;
if (grd[x][y] == DNGN_SECRET_DOOR && random2(pow) > random2(15))
@@ -451,12 +451,9 @@ void cast_detect_secret_doors(int pow)
}
if (found)
- {
redraw_screen();
- mprf("You detect %s secret door%s.",
- (found > 1) ? "some" : "a", (found > 1) ? "s" : "" );
- }
+ mprf("You detect %s", (found > 0) ? "secret doors!" : "nothing.");
} // end cast_detect_secret_doors()
void cast_summon_butterflies(int pow)