mirror of
https://github.com/glest/glest-source.git
synced 2025-10-02 02:16:40 +02:00
- do not load models or sound files in headless server mode
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
#include <iterator>
|
||||
#include "core_data.h"
|
||||
#include "font_text.h"
|
||||
//#include "sound.h"
|
||||
//#include "unicode/uclean.h"
|
||||
|
||||
// For gcc backtrace on crash!
|
||||
@@ -2534,6 +2535,8 @@ int glestMain(int argc, char** argv) {
|
||||
config.setString("FactorySound","None");
|
||||
if(hasCommandArgument(argc, argv,string(GAME_ARGS[GAME_ARG_MASTERSERVER_MODE])) == true) {
|
||||
Logger::getInstance().setMasterserverMode(true);
|
||||
Model::setMasterserverMode(true);
|
||||
Shared::Sound::Sound::setMasterserverMode(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user