Skip to content

Commit

Permalink
Added ifdef to remove debug mode (pre-prod release) (#699)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaygarcia authored Nov 8, 2020
1 parent 4fd3881 commit cd37154
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/GGame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ void GGame::ToggleInGameMenu() {
gControls.dKeys = 0;
}

#ifdef DEBUG_MODE
void GGame::ToggleDebugMenu() {
if (GPlayer::mGameOver || mGameMenu || mInventory) {
return;
Expand All @@ -117,7 +118,7 @@ void GGame::ToggleDebugMenu() {
}
gControls.dKeys = 0;
}

#endif
/*******************************************************************************
*******************************************************************************
*******************************************************************************/
Expand Down
3 changes: 3 additions & 0 deletions src/GGame.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ class GGame : public BApplication {

void ToggleInGameMenu();
void ToggleInventory();

#ifdef DEBUG_MODE
void ToggleDebugMenu();
#endif
TBool IsGameState();
BGameEngine *CurrentState();

Expand Down
4 changes: 3 additions & 1 deletion src/Game.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

// Debug mode
#define DEBUG_MODE
// #undef DEBUG_MODE
//#undef DEBUG_MODE

// special characters
#define STR_LEFT_ARROW "\xf"
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit cd37154

Please sign in to comment.