- do not load models or sound files in headless server mode

This commit is contained in:
Mark Vejvoda
2011-09-26 05:29:52 +00:00
parent f5c7eff49c
commit 5a79cad34b
5 changed files with 46 additions and 12 deletions

View File

@@ -176,6 +176,8 @@ private:
string fileName;
string sourceLoader;
static bool masterserverMode;
public:
//constructor & destructor
Model();
@@ -183,6 +185,8 @@ public:
virtual void init()= 0;
virtual void end()= 0;
static void setMasterserverMode(bool value) { masterserverMode=value; }
//data
void updateInterpolationData(float t, bool cycle);
void updateInterpolationVertices(float t, bool cycle);