summaryrefslogtreecommitdiff
path: root/src/apDebug.cpp
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2013-01-28 02:46:50 +0100
committerTreeki <treeki@gmail.com>2013-01-28 02:46:50 +0100
commit876f0b3e500c3b60c6d69b3d3abbfe3b29837201 (patch)
tree6f917fd5ca452ee091675b77558a934dabae5c7b /src/apDebug.cpp
parentf6ff7ca41f6e9b496a03e05e2ae053481add2a9f (diff)
downloadkamek-876f0b3e500c3b60c6d69b3d3abbfe3b29837201.tar.gz
kamek-876f0b3e500c3b60c6d69b3d3abbfe3b29837201.zip
implement the Konami Code into Newer
Diffstat (limited to '')
-rw-r--r--src/apDebug.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/apDebug.cpp b/src/apDebug.cpp
index ee31c28..bcaf33f 100644
--- a/src/apDebug.cpp
+++ b/src/apDebug.cpp
@@ -32,9 +32,11 @@ class APDebugDrawer : public m3d::proc_c {
static APDebugDrawer defaultInstance;
+static bool enableDebugMode = false;
int APDebugDraw() {
- defaultInstance.drawMe();
+ if (enableDebugMode)
+ defaultInstance.drawMe();
return 1;
}