mirror of
https://github.com/glest/glest-source.git
synced 2025-02-25 12:12:25 +01:00
- 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:
parent
90fe87098c
commit
5e410f3066
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user