- bugfix for turning off fog of war on network games when players are dead. Now we DO NOT turn off fog of war until ALL of the players units are dead.

This commit is contained in:
Mark Vejvoda 2010-12-13 23:24:03 +00:00
parent 90fe87098c
commit 5e410f3066
1 changed files with 2 additions and 1 deletions

View File

@ -1183,7 +1183,8 @@ void World::computeFow(int factionIdxToTick) {
if( k == thisTeamIndex &&
(thisTeamIndex == GameConstants::maxPlayers -1 + fpt_Observer ||
(game->getGameOver() == true && (game->getGameSettings()->isNetworkGame() == false ||
game->getGameSettings()->getEnableObserverModeAtEndGame() == true)))) {
(game->getGameSettings()->getEnableObserverModeAtEndGame() == true &&
getFaction(k)->getUnitCount() <= 0))))) {
map.getSurfaceCell(i, j)->setVisible(k, true);
map.getSurfaceCell(i, j)->setExplored(k, true);