summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-10-15 19:44:47 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-10-15 19:44:47 +0000
commit555c7481ba83971f8ce95b1e80caeabf3dc26ff4 (patch)
tree41eadee8a07cf501804f4602ddec3e88b3ab9d86
parentb27cf7886597390476906638f3218e16ac8c4168 (diff)
downloadmana-555c7481ba83971f8ce95b1e80caeabf3dc26ff4.tar.gz
mana-555c7481ba83971f8ce95b1e80caeabf3dc26ff4.tar.bz2
mana-555c7481ba83971f8ce95b1e80caeabf3dc26ff4.tar.xz
mana-555c7481ba83971f8ce95b1e80caeabf3dc26ff4.zip
Removed some legacy debug code.
-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()