diff options
author | Starla Insigna <hatkirby@fourisland.com> | 2009-01-30 15:20:40 -0500 |
---|---|---|
committer | Starla Insigna <hatkirby@fourisland.com> | 2009-01-30 15:20:40 -0500 |
commit | f2738dc2e06f172a6db0822d4f94ccdcd6b52da8 (patch) | |
tree | cc317672794472243251d51154d4b9a8f680b15f /src/com/fourisland/fourpuzzle/gamestate/mapview/event/SpecialEvent.java | |
parent | 000384f5921bad138b77870fb6381fea5ac4d38b (diff) | |
download | fourpuzzle-f2738dc2e06f172a6db0822d4f94ccdcd6b52da8.tar.gz fourpuzzle-f2738dc2e06f172a6db0822d4f94ccdcd6b52da8.tar.bz2 fourpuzzle-f2738dc2e06f172a6db0822d4f94ccdcd6b52da8.zip |
Fixed AutomaticViewpoint cache issue
Previously, heroLoc wasn't a defensive copy of HeroEvent.getLocation(), it was HeroEvent.getLocation(). As of such, the condition that they were inequal always failed. However, a typo in the condition (leaving out the exclamation point) led us to believe it was working fine when in fact, AutomaticViewpoint was recalculating the viewpoint every tick instead of everytime the hero moves. Now it only refreshes when the hero moves or is moving. Also cleared up an ambiguous comment in SpecialEvent's PanViewpoint's JavaDoc.
Diffstat (limited to 'src/com/fourisland/fourpuzzle/gamestate/mapview/event/SpecialEvent.java')
-rw-r--r-- | src/com/fourisland/fourpuzzle/gamestate/mapview/event/SpecialEvent.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/fourisland/fourpuzzle/gamestate/mapview/event/SpecialEvent.java b/src/com/fourisland/fourpuzzle/gamestate/mapview/event/SpecialEvent.java index 342b65f..43cf626 100644 --- a/src/com/fourisland/fourpuzzle/gamestate/mapview/event/SpecialEvent.java +++ b/src/com/fourisland/fourpuzzle/gamestate/mapview/event/SpecialEvent.java | |||
@@ -188,8 +188,8 @@ public class SpecialEvent { | |||
188 | /** | 188 | /** |
189 | * Pans the viewpoint the the specified tile location | 189 | * Pans the viewpoint the the specified tile location |
190 | * | 190 | * |
191 | * @param x The x coordinate of the tile to pan to | 191 | * @param x The x coordinate of the tile in the top-left corner to pan to |
192 | * @param y The y coordinate of the tile to pan to | 192 | * @param y The y coordinate of the tile in the top-left corner to pan to |
193 | * @param length How long (in milliseconds) it will take to pan | 193 | * @param length How long (in milliseconds) it will take to pan |
194 | * @param block If true, the game will wait for the pan to complete | 194 | * @param block If true, the game will wait for the pan to complete |
195 | * before executing any more commands | 195 | * before executing any more commands |