From 22d680f23c527a3287d7c3a40cad57b705e8b08c Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Thu, 22 Oct 2009 09:42:06 +0200 Subject: Bypass player death in test mode. --- crawl-ref/source/ouch.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/ouch.cc') 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); -- cgit v1.2.3-54-g00ecf