summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/effects.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-03 21:31:12 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-03 21:31:12 +0000
commit189cd2fc2491bde8c2efa508d808c67700b38b8d (patch)
treea46e0310fc4765b41279f8f8746ed05f7bab66bd /crawl-ref/source/effects.cc
parent211258df014966e8ec3aad8596453ab0e153407f (diff)
downloadcrawl-ref-189cd2fc2491bde8c2efa508d808c67700b38b8d.tar.gz
crawl-ref-189cd2fc2491bde8c2efa508d808c67700b38b8d.zip
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
Diffstat (limited to 'crawl-ref/source/effects.cc')
-rw-r--r--crawl-ref/source/effects.cc14
1 files changed, 9 insertions, 5 deletions
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