From f626e442c7a77191a145825507610d3b1ef40ab3 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Fri, 6 Nov 2009 19:12:55 +0100 Subject: Add actor::set_position. This should be used instead of setting position directly. actor::position could be made "protected" except for the arena's unwind_var(you.position), which is too difficult for me to fix. The reason behind this change is that actors should get their own LOS, whose origin should be synchronized with the actor's position. This change also removes the non-const "coord_def& actor::pos()" (yuk). --- crawl-ref/source/spl-cast.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/spl-cast.cc') diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc index bc2b9a6bb6..35e26beef7 100644 --- a/crawl-ref/source/spl-cast.cc +++ b/crawl-ref/source/spl-cast.cc @@ -1069,7 +1069,7 @@ static void _try_monster_cast(spell_type spell, int powc, | MF_WAS_IN_VIEW | MF_HARD_RESET); mon->hit_points = you.hp; mon->hit_dice = you.experience_level; - mon->pos() = you.pos(); + mon->set_position(you.pos()); mon->target = spd.target; if (!spd.isTarget) -- cgit v1.2.3-54-g00ecf