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/main.cc')
-rw-r--r--src/server/main.cc16
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