Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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();
}