Server is nearly done, only server_application.cpp is failing

This commit is contained in:
Kayne Ruse
2014-06-06 23:34:38 +10:00
parent 10e857ecd1
commit 170096b5db
8 changed files with 31 additions and 21 deletions
+1 -13
View File
@@ -80,6 +80,7 @@ void ServerApplication::Init(int argc, char** argv) {
combatMgr.SetLuaState(luaState);
roomMgr.SetLuaState(luaState);
enemyMgr.SetLuaState(luaState);
std::cout << "Internal managers ready" << std::endl;
@@ -133,19 +134,6 @@ void ServerApplication::Proc() {
void ServerApplication::Quit() {
std::cout << "Shutting down" << std::endl;
//save the server state
for (auto& it : accountMap) {
SaveUserAccount(it.first);
}
for (auto& it : characterMap) {
SaveCharacter(it.first);
}
//empty the members
accountMap.clear();
characterMap.clear();
regionPager.UnloadAll();
//APIs
lua_close(luaState);
sqlite3_close_v2(database);