From babef2ec1d88b6057b0e17bf1c04dfa3c9d0d5a0 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 27 Oct 2007 13:17:31 +0000 Subject: conditional -DDEBUG messages --- src/game/game.cc | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'src/game/game.cc') diff --git a/src/game/game.cc b/src/game/game.cc index 0ac9acc..c6458d0 100644 --- a/src/game/game.cc +++ b/src/game/game.cc @@ -8,8 +8,11 @@ #include "ship.h" #include "star.h" +#include "common/console.h" #include "common/file.h" +#include "osirion.h" + namespace game { using common::File; @@ -23,10 +26,9 @@ bool initialized = false; // FIXME win32 void init() { - // load the world - star.location = Vector3f(256.0f, 0.0f, 256.0f); - ship.location = Vector3f(0,0,0); - + conmesg << "Project::OSiRiON " << OSIRION_VERSION << std::endl; + condebug << "Debug messages enabled" << std::endl; + // initialize game data locations // TODO create game::homedir if it doesn't exist File::datadir = "./data/"; @@ -36,9 +38,16 @@ void init() // read game.ini File f; - f.open("game.ini"); + f.open("ini/game.ini"); f.close(); + // load the world + f.open("ini/world.ini"); + f.close(); + + star.location = Vector3f(256.0f, 0.0f, 256.0f); + ship.location = Vector3f(0,0,0); + // all done, ready to run initialized = true; } -- cgit v1.2.3