summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--src/engine.cpp18
2 files changed, 4 insertions, 18 deletions
diff --git a/ChangeLog b/ChangeLog
index 23999a76..4cd759b3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-10-15 Björn Steinbrink <B.Steinbrink@gmx.de>
+
+ * src/engine.cpp: Removed some legacy debug code.
+
2005-10-13 Bjørn Lindeijer <bjorn@lindeijer.nl>
* src/game.cpp: Prevent Alt+p/s/f from appearing in chatbox.
diff --git a/src/engine.cpp b/src/engine.cpp
index 9b26f08d..5e175e32 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -26,10 +26,6 @@
#include <list>
#include <sstream>
-#ifdef DEBUG
-#include <guichan/widgets/label.hpp>
-#endif
-
#include "being.h"
#include "floor_item.h"
#include "game.h"
@@ -43,7 +39,6 @@
#include "gui/gui.h"
#include "gui/minimap.h"
-#include "gui/windowcontainer.h"
#include "resources/image.h"
#include "resources/iteminfo.h"
@@ -60,10 +55,6 @@ extern int frame;
char itemCurrenyQ[10] = "0";
int camera_x, camera_y;
-#ifdef DEBUG
-gcn::Label *debugInfo;
-#endif
-
std::map<int, Spriteset*> monsterset;
ItemManager *itemDb; /**< Item database object */
@@ -78,12 +69,6 @@ Engine::Engine():
mCurrentMap(NULL)
{
// Initializes GUI
-#ifdef DEBUG
- debugInfo = new gcn::Label();
- // Oh, come on guichan folks, how useful is it to have a single widget gui?
- // (Well, the BasicContainer interface isn't that much more useful... ;)
- dynamic_cast<WindowContainer*>(gui->getTop())->add(debugInfo);
-#endif
// Load the sprite sets
ResourceManager *resman = ResourceManager::getInstance();
@@ -132,9 +117,6 @@ Engine::~Engine()
attackTarget->decRef();
delete itemDb;
-#ifdef DEBUG
- delete debugInfo;
-#endif
}
Map *Engine::getCurrentMap()