diff options
author | Stijn Buys <ingar@osirion.org> | 2007-10-22 17:40:39 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2007-10-22 17:40:39 +0000 |
commit | aa33bc22ec4cd14e200ba9e09c43e884a2101a74 (patch) | |
tree | 632021226cb8f0d5c05266b2bb84c607fbc27b80 /src/server/main.cc | |
parent | f8e9eab39a5e96d478762d06e27ec38f80128435 (diff) |
basis system console
Diffstat (limited to 'src/server/main.cc')
-rw-r--r-- | src/server/main.cc | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/server/main.cc b/src/server/main.cc index 6f71468..92b2dce 100644 --- a/src/server/main.cc +++ b/src/server/main.cc @@ -4,14 +4,12 @@ the terms and conditions of the GNU General Public License version 2 */ -// C++ headers -#include <iostream> - -// project headers +#include "console.h" +#include "timer.h" +#include "game/game.h" #include "osirion.h" -#include "game/game.h" -#include "timer.h" +#include <iostream> void quit(int status) { @@ -20,8 +18,12 @@ void quit(int status) int main( int argc, char *argv[] ) { + // initialize system console; + server::Console serverconsole; + common::Console::instance = &serverconsole; + const float server_framerate = 1.0f / 20.0f; - std::cout << "The Osirion project " << OSIRION_VERSION << std::endl; + conmesg << "The Osirion project " << OSIRION_VERSION << std::endl; server::Timer timer; // initialize game |