- added removal of fog of war at game end for scenarios

This commit is contained in:
Mark Vejvoda 2010-10-04 21:31:53 +00:00
parent 88335f112b
commit 5f698575d9

View File

@ -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()){