diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-01 07:55:09 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-01 07:55:09 +0000 |
commit | e26ee9bec53f5fb03ce55baadd0eb06f8cac77da (patch) | |
tree | 820d5469eae347956f97dd58801727f1bf2a88c1 /crawl-ref/source/ouch.cc | |
parent | d685dc65c389cbe3dab1c1f7f0fad6c7fbddb003 (diff) | |
download | crawl-ref-e26ee9bec53f5fb03ce55baadd0eb06f8cac77da.tar.gz crawl-ref-e26ee9bec53f5fb03ce55baadd0eb06f8cac77da.zip |
Don't let the player starve to death while observing the arena.
ouch() asserts if called while in arena mode.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8077 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/ouch.cc')
-rw-r--r-- | crawl-ref/source/ouch.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc index ffe58014e5..5a555b7d2b 100644 --- a/crawl-ref/source/ouch.cc +++ b/crawl-ref/source/ouch.cc @@ -836,6 +836,8 @@ static void _yred_mirrors_injury(int dam, int death_source) void ouch(int dam, int death_source, kill_method_type death_type, const char *aux, bool see_source) { + ASSERT(!crawl_state.arena); + ait_hp_loss hpl(dam, death_type); interrupt_activity( AI_HP_LOSS, &hpl ); |