- added removal of fog of war at game end for scenarios
This commit is contained in:
parent
88335f112b
commit
5f698575d9
|
@ -1769,6 +1769,19 @@ void Game::checkWinnerScripted() {
|
|||
}
|
||||
}
|
||||
|
||||
if( this->gameSettings.isNetworkGame() == false ||
|
||||
this->gameSettings.getEnableObserverModeAtEndGame() == true) {
|
||||
// Let the happy winner view everything left in the world
|
||||
//world.setFogOfWar(false);
|
||||
|
||||
// This caused too much LAG for network games
|
||||
if(this->gameSettings.isNetworkGame() == false) {
|
||||
Renderer::getInstance().setPhotoMode(true);
|
||||
gameCamera.setMaxHeight(500);
|
||||
}
|
||||
// END
|
||||
}
|
||||
|
||||
scriptManager.onGameOver(scriptManager.getPlayerModifiers(world.getThisFactionIndex())->getWinner());
|
||||
|
||||
if(scriptManager.getPlayerModifiers(world.getThisFactionIndex())->getWinner()){
|
||||
|
|
Loading…
Reference in New Issue
Block a user