From 7d1a1b12952b76d210d26bd943792b29ed68907f Mon Sep 17 00:00:00 2001 From: Rtch90 Date: Thu, 2 Feb 2012 00:09:24 +0000 Subject: [PATCH] [Change] Turned off debug text unless 'p' is pressed. [Remove] Gave some of KonoM's debug stuff the axe. --- src/Unuk/Game.cpp | 8 -------- src/Unuk/Globals.cpp | 3 ++- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/Unuk/Game.cpp b/src/Unuk/Game.cpp index 928b6ad..b50b918 100644 --- a/src/Unuk/Game.cpp +++ b/src/Unuk/Game.cpp @@ -128,14 +128,6 @@ gameNavVal_t Game::Run(const string savegameIDArg) { playerXYString.str(""); playerXYString << "Player coords: x" << _player->GetX() << ", y" << _player->GetY(); _playerXY.SetTextBlended(playerXYString.str(), vsmall, COLOUR_BLACK); - - int npc0Health = 0; - if(_map.GetWorld().GetNPCCount() == 0) { - npc0Health = 0; - } - else { - npc0Health = _map.GetWorld().GetNPC(0)->GetHealth(); - } } } // Restrict the fps. diff --git a/src/Unuk/Globals.cpp b/src/Unuk/Globals.cpp index 0ad4ff3..4c8d6b9 100644 --- a/src/Unuk/Globals.cpp +++ b/src/Unuk/Globals.cpp @@ -8,7 +8,8 @@ SDL_Event event; int levelWidth; int levelHeight; -bool debugEnabled = true; +// Start off false. press 'p' to turn it on! +bool debugEnabled = false; EventHistory* eventHistory = NULL;