- 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

@@ -54,17 +54,21 @@ public:
// class Sound
// =====================================================
class Sound{
class Sound {
protected:
SoundFileLoader *soundFileLoader;
SoundInfo info;
float volume;
string fileName;
static bool masterserverMode;
public:
Sound();
virtual ~Sound(){};
static void setMasterserverMode(bool value) { masterserverMode=value; }
const SoundInfo *getInfo() const {return &info;}
float getVolume() const {return volume;}