diff --git a/src/GGame.cpp b/src/GGame.cpp index bb0ad5f0..1593dc5c 100644 --- a/src/GGame.cpp +++ b/src/GGame.cpp @@ -102,6 +102,7 @@ void GGame::ToggleInGameMenu() { gControls.dKeys = 0; } +#ifdef DEBUG_MODE void GGame::ToggleDebugMenu() { if (GPlayer::mGameOver || mGameMenu || mInventory) { return; @@ -117,7 +118,7 @@ void GGame::ToggleDebugMenu() { } gControls.dKeys = 0; } - +#endif /******************************************************************************* ******************************************************************************* *******************************************************************************/ diff --git a/src/GGame.h b/src/GGame.h index 068f1002..841a9907 100644 --- a/src/GGame.h +++ b/src/GGame.h @@ -40,7 +40,10 @@ class GGame : public BApplication { void ToggleInGameMenu(); void ToggleInventory(); + +#ifdef DEBUG_MODE void ToggleDebugMenu(); +#endif TBool IsGameState(); BGameEngine *CurrentState(); diff --git a/src/Game.h b/src/Game.h index a7e11187..e69eecbd 100644 --- a/src/Game.h +++ b/src/Game.h @@ -11,7 +11,7 @@ // Debug mode #define DEBUG_MODE -// #undef DEBUG_MODE +//#undef DEBUG_MODE // special characters #define STR_LEFT_ARROW "\xf" @@ -42,7 +42,9 @@ const TUint16 FACTOR = FRAMES_PER_SECOND / 30; #include "GCreditsState.h" #include "GGameMenuState.h" #include "GVictoryState.h" +#ifdef DEBUG_MODE #include "DebugMenuState/GDebugMenuState.h" +#endif //#include "GInventory.h" extern BViewPort *gViewPort;