From aa575d82717f50c3724be72ca7ab4bcb8de725ee Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Mon, 9 Mar 2009 17:02:53 -0400 Subject: Engine: Fixed walk-thru bug Two specific events on the test map were always running over eachother. This problem started a few commits ago, but it was uncertain which commit this was. The key to solving the problem, as all other debugging didn't show anything, was that a certain event appeared to be blocked by something when it walked downward, which wasn't there. It was then discerned that that location was the original location of a moving event. From there it was discerned that the parent map used by AbstractEvent was the original map that was copied from, not the map being used by MapViewGameState. A simple change to Map's copy() function fixed this. --- src/com/fourisland/fourpuzzle/gamestate/mapview/Map.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com/fourisland') diff --git a/src/com/fourisland/fourpuzzle/gamestate/mapview/Map.java b/src/com/fourisland/fourpuzzle/gamestate/mapview/Map.java index 8b262dd..9e5298b 100755 --- a/src/com/fourisland/fourpuzzle/gamestate/mapview/Map.java +++ b/src/com/fourisland/fourpuzzle/gamestate/mapview/Map.java @@ -74,7 +74,7 @@ public class Map { } temp.mapData = new Vector>(getMapData()); - temp.events = getEvents().copy(this); + temp.events = getEvents().copy(temp); return temp; } -- cgit 1.4.1