From fc3afd1d6460b2aa453167498979bbf7a636ef45 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Thu, 19 Mar 2009 22:58:24 -0400 Subject: Engine: Fixed many potential bugs Identified by FindBugs. http://findbugs.sourceforge.net/ --- src/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/com/fourisland/fourpuzzle/gamestate/mapview/MapViewGameState.java') 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 { * walkthrough flag so the Hero can walk through stuff */ if (key.isCtrlDown() && !debugWalkthrough) { - if (PuzzleApplication.INSTANCE.getContext().getResourceMap().getBoolean("debugMode")) + if (PuzzleApplication.getInstance().getContext().getResourceMap().getBoolean("debugMode")) { debugWalkthrough = true; } @@ -188,7 +188,7 @@ public class MapViewGameState implements GameState { { /* If debug mode is enabled and F11 is pressed, cancel any running * events */ - if ((key.getKey() == KeyEvent.VK_F11) && (PuzzleApplication.INSTANCE.getContext().getResourceMap().getBoolean("debugMode"))) + if ((key.getKey() == KeyEvent.VK_F11) && (PuzzleApplication.getInstance().getContext().getResourceMap().getBoolean("debugMode"))) { for (LayerEvent ev : currentMap.getEvents()) { -- cgit 1.4.1