diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-10-22 09:42:06 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-10-22 09:42:26 +0200 |
commit | 22d680f23c527a3287d7c3a40cad57b705e8b08c (patch) | |
tree | f895064a9751877d28dea0affa88f72397cce15a /crawl-ref/source/ouch.cc | |
parent | 1279846ae6b7d7601195427fbb0f6ab27e512296 (diff) | |
download | crawl-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.cc | 4 |
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); |