mirror of
https://github.com/glest/glest-source.git
synced 2025-08-13 11:54:00 +02:00
- added removal of fog of war at game end for scenarios
This commit is contained in:
@@ -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());
|
scriptManager.onGameOver(scriptManager.getPlayerModifiers(world.getThisFactionIndex())->getWinner());
|
||||||
|
|
||||||
if(scriptManager.getPlayerModifiers(world.getThisFactionIndex())->getWinner()){
|
if(scriptManager.getPlayerModifiers(world.getThisFactionIndex())->getWinner()){
|
||||||
|
Reference in New Issue
Block a user