summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/acr.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-02-13 22:04:24 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-02-13 22:04:24 +0000
commitc71960644c0d905e02565dfe5ab87a4e7a49ee2e (patch)
tree0c39c0bdd29e772d66ffcf0e8cced47a8ecca778 /crawl-ref/source/acr.cc
parenta55a1905e7a662cc2aed43971d7b0ed1e089cdf9 (diff)
downloadcrawl-ref-c71960644c0d905e02565dfe5ab87a4e7a49ee2e.tar.gz
crawl-ref-c71960644c0d905e02565dfe5ab87a4e7a49ee2e.zip
Fix [1890833]: Stop autoexploring if you lose consciousness due to
starvation. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3434 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/acr.cc')
-rw-r--r--crawl-ref/source/acr.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc
index 511109fadf..54138ed04b 100644
--- a/crawl-ref/source/acr.cc
+++ b/crawl-ref/source/acr.cc
@@ -2979,6 +2979,8 @@ static void world_reacts()
if (!you.cannot_act() && one_chance_in(40))
{
mpr("You lose consciousness!", MSGCH_FOOD);
+ stop_running();
+
you.duration[DUR_PARALYSIS] += 5 + random2(8);
if (you.duration[DUR_PARALYSIS] > 13)