Skip to content

Commit cd37154

Browse files
authored
Added ifdef to remove debug mode (pre-prod release) (#699)
1 parent 4fd3881 commit cd37154

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

src/GGame.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ void GGame::ToggleInGameMenu() {
102102
gControls.dKeys = 0;
103103
}
104104

105+
#ifdef DEBUG_MODE
105106
void GGame::ToggleDebugMenu() {
106107
if (GPlayer::mGameOver || mGameMenu || mInventory) {
107108
return;
@@ -117,7 +118,7 @@ void GGame::ToggleDebugMenu() {
117118
}
118119
gControls.dKeys = 0;
119120
}
120-
121+
#endif
121122
/*******************************************************************************
122123
*******************************************************************************
123124
*******************************************************************************/

src/GGame.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ class GGame : public BApplication {
4040

4141
void ToggleInGameMenu();
4242
void ToggleInventory();
43+
44+
#ifdef DEBUG_MODE
4345
void ToggleDebugMenu();
46+
#endif
4447
TBool IsGameState();
4548
BGameEngine *CurrentState();
4649

src/Game.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
// Debug mode
1313
#define DEBUG_MODE
14-
// #undef DEBUG_MODE
14+
//#undef DEBUG_MODE
1515

1616
// special characters
1717
#define STR_LEFT_ARROW "\xf"
@@ -42,7 +42,9 @@ const TUint16 FACTOR = FRAMES_PER_SECOND / 30;
4242
#include "GCreditsState.h"
4343
#include "GGameMenuState.h"
4444
#include "GVictoryState.h"
45+
#ifdef DEBUG_MODE
4546
#include "DebugMenuState/GDebugMenuState.h"
47+
#endif
4648
//#include "GInventory.h"
4749

4850
extern BViewPort *gViewPort;

0 commit comments

Comments
 (0)