Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-02-04 00:54:30 +0000
committerStijn Buys <ingar@osirion.org>2008-02-04 00:54:30 +0000
commit840f9b8678f607aecc15d47bc77248c4ac8b8574 (patch)
treef90688ca7afabb8e4123e1a811dd168a86717a3c /src/server/application.cc
parent43b994017a560a2fa97894ebfe121375d6614b6f (diff)
tweaked console
client status with timer and fps core connect/disconnect
Diffstat (limited to 'src/server/application.cc')
-rw-r--r--src/server/application.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/server/application.cc b/src/server/application.cc
index ee5f32f..8ea0808 100644
--- a/src/server/application.cc
+++ b/src/server/application.cc
@@ -19,10 +19,13 @@ void Application::init()
// force initialization of the game object
server::game = new game::Game();
+ con_print << "Initializing server..." << std::endl;
+
// initialize core
- core::ApplicationInterface::init();
+ core::ApplicationInterface::init();
- con_debug << "Initializing server..." << std::endl;
+ // connect to the game module
+ core::ApplicationInterface::connect();
}
void Application::run()
@@ -37,7 +40,7 @@ void Application::run()
frame(elapsed);
- timer.sleep(server_framerate - elapsed);
+ sys::sleep(server_framerate - elapsed);
timer.mark();
}