summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2008-10-23 11:46:21 +0000
committerIra Rice <irarice@gmail.com>2008-10-23 11:46:21 +0000
commit7a88c394584cb02cec8d1d7eb70ac2020e033d41 (patch)
treed19c75ea94072c9b54abb0c679a9bf6984b485c4 /src/main.cpp
parente57f4ec64f53091dd254c2ee2db9592d30a5af0b (diff)
downloadMana-7a88c394584cb02cec8d1d7eb70ac2020e033d41.tar.gz
Mana-7a88c394584cb02cec8d1d7eb70ac2020e033d41.tar.bz2
Mana-7a88c394584cb02cec8d1d7eb70ac2020e033d41.tar.xz
Mana-7a88c394584cb02cec8d1d7eb70ac2020e033d41.zip
Cleaned up ColorDB code so that it loads with all other databases, as
well as fixed color cycling.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 3755ad03..b92a4b2d 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -81,6 +81,7 @@
#include "net/messageout.h"
#include "net/network.h"
+#include "resources/colordb.h"
#include "resources/image.h"
#include "resources/itemdb.h"
#include "resources/monsterdb.h"
@@ -421,6 +422,7 @@ void exit_engine()
sound.close();
// Unload XML databases
+ ColorDB::unload();
ItemDB::unload();
MonsterDB::unload();
NPCDB::unload();
@@ -838,6 +840,7 @@ int main(int argc, char *argv[])
false);
// Load XML databases
+ ColorDB::load();
ItemDB::load();
MonsterDB::load();
NPCDB::load();