From 840f9b8678f607aecc15d47bc77248c4ac8b8574 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 4 Feb 2008 00:54:30 +0000 Subject: tweaked console client status with timer and fps core connect/disconnect --- src/server/application.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/server/application.cc') 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(); } -- cgit v1.2.3