From aa33bc22ec4cd14e200ba9e09c43e884a2101a74 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 22 Oct 2007 17:40:39 +0000 Subject: basis system console --- src/server/Makefile.am | 3 +-- src/server/main.cc | 16 +++++++++------- 2 files changed, 10 insertions(+), 9 deletions(-) (limited to 'src/server') diff --git a/src/server/Makefile.am b/src/server/Makefile.am index 0859838..c167667 100644 --- a/src/server/Makefile.am +++ b/src/server/Makefile.am @@ -1,6 +1,5 @@ INCLUDES = -I$(top_srcdir)/src METASOURCES = AUTO bin_PROGRAMS = osiriond -osiriond_SOURCES = main.cc timer.cc timer.h -noinst_HEADERS = timer.h +osiriond_SOURCES = console.cc console.h main.cc timer.cc timer.h osiriond_LDADD = $(top_builddir)/src/game/libgame.la 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 - -// project headers +#include "console.h" +#include "timer.h" +#include "game/game.h" #include "osirion.h" -#include "game/game.h" -#include "timer.h" +#include 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 -- cgit v1.2.3