- added option to quit headless server after game has completed:

./megaglest --headless-server-mode=exit
This commit is contained in:
Mark Vejvoda
2011-09-27 18:44:01 +00:00
parent 21005cc1e7
commit 0cf03a3562
6 changed files with 39 additions and 7 deletions

View File

@@ -43,6 +43,8 @@ const int Program::maxTimes= 10;
Program *Program::singleton = NULL;
const int SOUND_THREAD_UPDATE_MILLISECONDS = 25;
bool Program::wantShutdownApplicationAfterGame = false;
// =====================================================
// class Program::CrashProgramState
// =====================================================
@@ -161,10 +163,11 @@ void Program::ShowMessageProgramState::update() {
Program::Program() {
this->masterserverMode = false;
skipRenderFrameCount = 0;
programState= NULL;
singleton = this;
soundThreadManager = NULL;
this->shutdownApplicationEnabled = false;
this->skipRenderFrameCount = 0;
this->programState= NULL;
this->singleton = this;
this->soundThreadManager = NULL;
//mesage box
Lang &lang= Lang::getInstance();