From 3f5bad938a3fcb601ad41924a4707476b8b87241 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Tue, 21 Dec 2010 18:08:24 +0200 Subject: organizing stuff. --- src/main.h | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) (limited to 'src/main.h') diff --git a/src/main.h b/src/main.h index 22b5157d7..e6bb1caac 100644 --- a/src/main.h +++ b/src/main.h @@ -20,18 +20,19 @@ with this program; if not, write to the Free Software Foundation, Inc., #ifndef MAIN_HEADER #define MAIN_HEADER -#include -extern std::string getTimestamp(); -#define DTIME (getTimestamp()+": ") - -#include +#include "irrlichtwrapper.h" // Settings extern Settings g_settings; -#include +// A thread safe wrapper to irrlicht +// On a server build, this is always NULL. +extern IrrlichtWrapper *g_irrlicht; // Debug streams + +#include + extern std::ostream *dout_con_ptr; extern std::ostream *derr_con_ptr; extern std::ostream *dout_client_ptr; @@ -46,14 +47,5 @@ extern std::ostream *derr_server_ptr; #define dout_server (*dout_server_ptr) #define derr_server (*derr_server_ptr) -/*#ifndef SERVER - #include "utility.h" - extern TextureCache g_texturecache; -#endif*/ - -#include "irrlichtwrapper.h" -//extern IrrlichtDevice *g_device; -extern IrrlichtWrapper *g_irrlicht; - #endif -- cgit v1.2.3