summary refs log tree commit diff stats
path: root/src/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2009-03-19 22:58:24 -0400
committerStarla Insigna <hatkirby@fourisland.com>2009-03-19 22:58:24 -0400
commitfc3afd1d6460b2aa453167498979bbf7a636ef45 (patch)
tree390d5003901ec8b6e951dae2daedb485033c8b6e /src/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java
parent0ebc2f2c92e4b51069f497aca9f715198010bdf2 (diff)
downloadfourpuzzle-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-xsrc/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java4
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 {