diff options
author | Starla Insigna <hatkirby@fourisland.com> | 2009-03-19 22:58:24 -0400 |
---|---|---|
committer | Starla Insigna <hatkirby@fourisland.com> | 2009-03-19 22:58:24 -0400 |
commit | fc3afd1d6460b2aa453167498979bbf7a636ef45 (patch) | |
tree | 390d5003901ec8b6e951dae2daedb485033c8b6e /src/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java | |
parent | 0ebc2f2c92e4b51069f497aca9f715198010bdf2 (diff) | |
download | fourpuzzle-fc3afd1d6460b2aa453167498979bbf7a636ef45.tar.gz fourpuzzle-fc3afd1d6460b2aa453167498979bbf7a636ef45.tar.bz2 fourpuzzle-fc3afd1d6460b2aa453167498979bbf7a636ef45.zip |
Engine: Fixed many potential bugs
Identified by FindBugs. http://findbugs.sourceforge.net/
Diffstat (limited to 'src/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java')
-rwxr-xr-x | src/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java b/src/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java index 89fac99..d3bd101 100755 --- a/src/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java +++ b/src/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java | |||
@@ -83,7 +83,7 @@ public class MapViewGameState implements GameState { | |||
83 | * walkthrough flag so the Hero can walk through stuff */ | 83 | * walkthrough flag so the Hero can walk through stuff */ |
84 | if (key.isCtrlDown() && !debugWalkthrough) | 84 | if (key.isCtrlDown() && !debugWalkthrough) |
85 | { | 85 | { |
86 | if (PuzzleApplication.INSTANCE.getContext().getResourceMap().getBoolean("debugMode")) | 86 | if (PuzzleApplication.getInstance().getContext().getResourceMap().getBoolean("debugMode")) |
87 | { | 87 | { |
88 | debugWalkthrough = true; | 88 | debugWalkthrough = true; |
89 | } | 89 | } |
@@ -188,7 +188,7 @@ public class MapViewGameState implements GameState { | |||
188 | { | 188 | { |
189 | /* If debug mode is enabled and F11 is pressed, cancel any running | 189 | /* If debug mode is enabled and F11 is pressed, cancel any running |
190 | * events */ | 190 | * events */ |
191 | if ((key.getKey() == KeyEvent.VK_F11) && (PuzzleApplication.INSTANCE.getContext().getResourceMap().getBoolean("debugMode"))) | 191 | if ((key.getKey() == KeyEvent.VK_F11) && (PuzzleApplication.getInstance().getContext().getResourceMap().getBoolean("debugMode"))) |
192 | { | 192 | { |
193 | for (LayerEvent ev : currentMap.getEvents()) | 193 | for (LayerEvent ev : currentMap.getEvents()) |
194 | { | 194 | { |