From 189cd2fc2491bde8c2efa508d808c67700b38b8d Mon Sep 17 00:00:00 2001 From: zelgadis Date: Sat, 3 Jan 2009 21:31:12 +0000 Subject: Only do non-player stuff in handle_time() during arena mode. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8181 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/effects.cc | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'crawl-ref/source/effects.cc') diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc index 9559ba9da3..483b045600 100644 --- a/crawl-ref/source/effects.cc +++ b/crawl-ref/source/effects.cc @@ -3057,6 +3057,15 @@ static void _rot_inventory_food(long time_delta) // This function is called about every 20 turns. void handle_time(long time_delta) { + // Update all of the corpses, food chunks and potions of blood on + // the floor. + update_corpses(time_delta); + + spawn_random_monsters(); + + if (crawl_state.arena) + return; + // Nasty things happen to people who spend too long in Hell. if (player_in_hell() && coinflip()) _hell_effects(); @@ -3268,10 +3277,6 @@ void handle_time(long time_delta) yell(true); } - // Update all of the corpses, food chunks and potions of blood on - // the floor. - update_corpses(time_delta); - _rot_inventory_food(time_delta); // Exercise armour *xor* stealth skill: {dlb} @@ -3309,7 +3314,6 @@ void handle_time(long time_delta) if (one_chance_in(10)) change_labyrinth(); } - spawn_random_monsters(); } // Move monsters around to fake them walking around while player was -- cgit v1.2.3-54-g00ecf