summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ouch.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-10-22 09:42:06 +0200
committerRobert Vollmert <rvollmert@gmx.net>2009-10-22 09:42:26 +0200
commit22d680f23c527a3287d7c3a40cad57b705e8b08c (patch)
treef895064a9751877d28dea0affa88f72397cce15a /crawl-ref/source/ouch.cc
parent1279846ae6b7d7601195427fbb0f6ab27e512296 (diff)
downloadcrawl-ref-22d680f23c527a3287d7c3a40cad57b705e8b08c.tar.gz
crawl-ref-22d680f23c527a3287d7c3a40cad57b705e8b08c.zip
Bypass player death in test mode.
Diffstat (limited to 'crawl-ref/source/ouch.cc')
-rw-r--r--crawl-ref/source/ouch.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc
index bb8136352f..349d92c005 100644
--- a/crawl-ref/source/ouch.cc
+++ b/crawl-ref/source/ouch.cc
@@ -1056,7 +1056,7 @@ void ouch(int dam, int death_source, kill_method_type death_type,
&& death_type != KILLED_BY_WINNING
&& death_type != KILLED_BY_LEAVING)
{
- if (you.wizard)
+ if (crawl_state.test || you.wizard)
{
const std::string death_desc
= se.death_description(scorefile_entry::DDV_VERBOSE);
@@ -1066,7 +1066,7 @@ void ouch(int dam, int death_source, kill_method_type death_type,
mprf(MSGCH_DIAGNOSTICS, "Damage: %d; Hit points: %d", dam, you.hp);
#endif
- if (!yesno("Die?", false, 'n'))
+ if (crawl_state.test || !yesno("Die?", false, 'n'))
{
take_note(Note( NOTE_DEATH, you.hp, you.hp_max,
death_desc.c_str()), true);