summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source
diff options
context:
space:
mode:
authorCharles Otto <ottochar@gmail.com>2009-10-11 00:22:46 -0400
committerCharles Otto <ottochar@gmail.com>2009-10-11 00:22:46 -0400
commit930477f201bf327048aee3abb1831b27892bb711 (patch)
treeec8f7e6039c153bbba66620243b493f29d94aeeb /crawl-ref/source
parente4f58176388fa16d5f76815af0900a35d9e61627 (diff)
downloadcrawl-ref-930477f201bf327048aee3abb1831b27892bb711.tar.gz
crawl-ref-930477f201bf327048aee3abb1831b27892bb711.zip
Fix bug 2876251, monsters taking 2 turns to open a door.
Diffstat (limited to 'crawl-ref/source')
-rw-r--r--crawl-ref/source/monstuff.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index e2c6672c7c..fae0e43ee8 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -7924,12 +7924,6 @@ static void _handle_monster_move(monsters *monster)
if (mons_cannot_move(monster) || !_monster_move(monster))
monster->speed_increment -= non_move_energy;
- else if (monster->pos() == old_pos)
- {
- // There was nowhere the monster could move to, so it
- // did nothing.
- monster->speed_increment -= non_move_energy;
- }
}
update_beholders(monster);