summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-act.cc
diff options
context:
space:
mode:
authorCharles Otto <ottochar@gmail.com>2009-11-13 00:51:56 -0500
committerCharles Otto <ottochar@gmail.com>2009-11-13 00:51:56 -0500
commite7d888537c4d178a98e2ef1727a84d5132655d6c (patch)
tree79fc6a8cb3a521b7c4d6a9f8fb761a12c7d6ed23 /crawl-ref/source/mon-act.cc
parent4a7b398e339f0b55ae3ce579a02c81c2c281216d (diff)
parent8075717d132ff61257a8836ce7854f71f1eb05f8 (diff)
downloadcrawl-ref-e7d888537c4d178a98e2ef1727a84d5132655d6c.tar.gz
crawl-ref-e7d888537c4d178a98e2ef1727a84d5132655d6c.zip
Merge spore experiments branch.
Diffstat (limited to 'crawl-ref/source/mon-act.cc')
-rw-r--r--crawl-ref/source/mon-act.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-act.cc b/crawl-ref/source/mon-act.cc
index d9bce0dbfd..f699d7578e 100644
--- a/crawl-ref/source/mon-act.cc
+++ b/crawl-ref/source/mon-act.cc
@@ -3104,10 +3104,14 @@ static bool _do_move_monster(monsters *monster, const coord_def& delta)
}
mgrd(monster->pos()) = NON_MONSTER;
+ coord_def old_pos = monster->pos();
+
monster->set_position(f);
mgrd(monster->pos()) = monster_index(monster);
+ ballisto_on_move(monster, old_pos);
+
monster->check_redraw(monster->pos() - delta);
monster->apply_location_effects(monster->pos() - delta);