mirror of
https://github.com/glest/glest-source.git
synced 2025-08-20 15:11:20 +02:00
- do not take screenshot when saving game on headless server
This commit is contained in:
@@ -3620,9 +3620,11 @@ string Game::saveGame(string name) {
|
||||
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("Saving game to [%s]\n",saveGameFile.c_str());
|
||||
xmlTree.save(saveGameFile);
|
||||
|
||||
if(masterserverMode == false) {
|
||||
// take Screenshot
|
||||
string jpgFileName=saveGameFile+".jpg";
|
||||
Renderer::getInstance().saveScreen(jpgFileName);
|
||||
}
|
||||
|
||||
return saveGameFile;
|
||||
}
|
||||
|
Reference in New Issue
Block a user