summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monstuff.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-02 15:57:03 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-02 15:57:03 +0000
commitd07c0fd21b74ac445ecdd955dbc627b459fd544d (patch)
treedadef6d88b9238d50c35d820fb6726aca76b8ff4 /crawl-ref/source/monstuff.cc
parente0ca31828aef509c59b5eb4b6d43cb604d92b947 (diff)
downloadcrawl-ref-d07c0fd21b74ac445ecdd955dbc627b459fd544d.tar.gz
crawl-ref-d07c0fd21b74ac445ecdd955dbc627b459fd544d.zip
Reduce arena end-of-round delay, do arena LOS from current LOS center, not center of displayed grid (vgrdc can be different from glosc() if view_lock=no). Also fix monster behaviour to seek instead of wander in the arena.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8119 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r--crawl-ref/source/monstuff.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index 9759f977e6..f1bd9a1856 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -1989,7 +1989,7 @@ static coord_def _random_monster_nearby_habitable_space(const monsters& mon,
bool respect_los)
{
const bool respect_sanctuary = mons_wont_attack(&mon);
-
+
coord_def target;
int tries;
{
@@ -3566,6 +3566,8 @@ static void _handle_behaviour(monsters *mon)
mon->foe = MHITNOT;
if (mon->foe == MHITNOT || mon->foe == MHITYOU)
_arena_set_foe(mon);
+ if (mon->behaviour == BEH_WANDER)
+ mon->behaviour = BEH_SEEK;
return;
}