diff options
author | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-24 02:35:46 -0800 |
---|---|---|
committer | Matthew Cline <zelgadis@sourceforge.net> | 2009-11-24 03:19:36 -0800 |
commit | db67164e0ffcc0aa6679294f720d39f75016a90a (patch) | |
tree | cad70a1aa0bbd073528d54590a562479d7fb3266 /crawl-ref/source/ouch.cc | |
parent | e362a71223bd447b334ff3b2966675e6eeda4c2b (diff) | |
download | crawl-ref-db67164e0ffcc0aa6679294f720d39f75016a90a.tar.gz crawl-ref-db67164e0ffcc0aa6679294f720d39f75016a90a.zip |
you.never_die tweaks
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 4698c7f506..c1e89e923d 100644 --- a/crawl-ref/source/ouch.cc +++ b/crawl-ref/source/ouch.cc @@ -1140,8 +1140,8 @@ void ouch(int dam, int death_source, kill_method_type death_type, #if WIZARD || DEBUG if (you.never_die) { - mpr("you.never_die set to true, avoiding death", - MSGCH_DIAGNOSTICS); + if (you.hp <= 0) + you.hp = you.hp_max; return; } #endif |