summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/godabil.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2014-07-26 12:29:30 -0400
committerNeil Moore <neil@s-z.org>2014-07-26 12:31:59 -0400
commit3a388267246caaa9dd2046dfb11515f050eac22a (patch)
tree6acf44377e67434146c9680b1799bc6f8e65257b /crawl-ref/source/godabil.cc
parenta39016e673e3606421a8426de839f6f238dc2fd2 (diff)
downloadcrawl-ref-3a388267246caaa9dd2046dfb11515f050eac22a.tar.gz
crawl-ref-3a388267246caaa9dd2046dfb11515f050eac22a.zip
Don't show sporable tile overlay when just checking (#8821)
That caused an infinite recursion in tiles. This generalises the fix in 18cf5c4 to make the Reproduction check have no side effects when quiet == true.
Diffstat (limited to 'crawl-ref/source/godabil.cc')
-rw-r--r--crawl-ref/source/godabil.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/crawl-ref/source/godabil.cc b/crawl-ref/source/godabil.cc
index 0368c0b881..1c3d1c5b1e 100644
--- a/crawl-ref/source/godabil.cc
+++ b/crawl-ref/source/godabil.cc
@@ -2777,7 +2777,7 @@ int fedhas_check_corpse_spores(bool quiet)
vector<stack_iterator> positions;
int count = count_corpses_in_los(&positions);
- if (count == 0)
+ if (quiet || count == 0)
return count;
viewwindow(false);
@@ -2798,8 +2798,7 @@ int fedhas_check_corpse_spores(bool quiet)
#endif
}
- if (!quiet
- && yesnoquit("Will you create these spores?", true, 'y') <= 0)
+ if (yesnoquit("Will you create these spores?", true, 'y') <= 0)
{
viewwindow(false);
return -1;