mirror of
https://github.com/glest/glest-source.git
synced 2025-08-11 02:43:57 +02:00
- do not load models or sound files in headless server mode
This commit is contained in:
@@ -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;}
|
||||
|
||||
|
Reference in New Issue
Block a user