summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorAaron Marks <nymacro@gmail.com>2005-05-23 13:51:42 +0000
committerAaron Marks <nymacro@gmail.com>2005-05-23 13:51:42 +0000
commiteec7111f5cb5a3785b1e2b67bbcd96e26680f18e (patch)
tree468ddb42fffac2028ed070ff883a6424ad9074b2 /src/main.cpp
parent7594437a36acbdc7fb0c1a0e56b0954910c2543c (diff)
downloadmanaserv-eec7111f5cb5a3785b1e2b67bbcd96e26680f18e.tar.gz
manaserv-eec7111f5cb5a3785b1e2b67bbcd96e26680f18e.tar.bz2
manaserv-eec7111f5cb5a3785b1e2b67bbcd96e26680f18e.tar.xz
manaserv-eec7111f5cb5a3785b1e2b67bbcd96e26680f18e.zip
Updated Storage class (added extra table to database).
Misc.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 38b1f29f..13d310bf 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -65,7 +65,7 @@ bool running = true; /**< Determines if server keeps running */
Skill skillTree("base"); /**< Skill tree */
-Storage *store;
+Storage store;
/**
* SDL timer callback, sends a <code>TMW_WORLD_TICK</code> event.
@@ -115,7 +115,6 @@ void initialize()
script = new ScriptSquirrel("main.nut");
#endif
- store = new Storage();
}
/**
@@ -163,8 +162,6 @@ int main(int argc, char *argv[])
delete script;
#endif
delete logger;
-
- delete store;
}
/**
@@ -199,6 +196,8 @@ int main(int argc, char *argv[])
session->startListen(connectionHandler, SERVER_PORT);
logger->log("Listening on port %d...", SERVER_PORT);
+ std::cout << "Number of accounts on server: " << store.accountCount() << std::endl;
+
SDL_Event event;
while (running)