summaryrefslogtreecommitdiff
path: root/src/engine.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2006-11-23 22:51:42 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2006-11-23 22:51:42 +0000
commiteb6a3dfd09f88414ba1bae9ffe1cf4440db7565d (patch)
tree41015edc17e3c308d04e11c062a31f6bde028ea0 /src/engine.cpp
parent08de4c7bab768be5a583150bfabd5d6d54a29c7a (diff)
downloadmana-eb6a3dfd09f88414ba1bae9ffe1cf4440db7565d.tar.gz
mana-eb6a3dfd09f88414ba1bae9ffe1cf4440db7565d.tar.bz2
mana-eb6a3dfd09f88414ba1bae9ffe1cf4440db7565d.tar.xz
mana-eb6a3dfd09f88414ba1bae9ffe1cf4440db7565d.zip
Refectored the Itemmanager class to an ItemDB namespace.
Diffstat (limited to 'src/engine.cpp')
-rw-r--r--src/engine.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/engine.cpp b/src/engine.cpp
index 868454d4..0be41e2a 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -44,7 +44,6 @@
#include "net/messageout.h"
#include "net/protocol.h"
-#include "resources/itemmanager.h"
#include "resources/mapreader.h"
#include "resources/resourcemanager.h"
#include "resources/spriteset.h"
@@ -57,8 +56,6 @@ extern Minimap *minimap;
char itemCurrenyQ[10] = "0";
int camera_x, camera_y;
-ItemManager *itemDb; /**< Item database object */
-
Spriteset *emotionset;
Spriteset *npcset;
std::vector<Spriteset *> weaponset;
@@ -87,9 +84,6 @@ Engine::Engine(Network *network):
if (!npcset) logger->error("Unable to load NPC spriteset!");
if (!emotionset) logger->error("Unable to load emotions spriteset!");
-
- // Initialize item manager
- itemDb = new ItemManager();
}
Engine::~Engine()
@@ -101,8 +95,6 @@ Engine::~Engine()
std::for_each(weaponset.begin(), weaponset.end(),
std::mem_fun(&Spriteset::decRef));
weaponset.clear();
-
- delete itemDb;
}
void Engine::changeMap(const std::string &mapPath)