mirror of
https://github.com/glest/glest-source.git
synced 2025-08-28 10:19:55 +02:00
- bugfix for game over and player can see whole map causing out of synch in some cases.
This commit is contained in:
@@ -1231,10 +1231,8 @@ void World::computeFow(int factionIdxToTick) {
|
|||||||
for(int j = 0; j < map.getSurfaceH(); ++j) {
|
for(int j = 0; j < map.getSurfaceH(); ++j) {
|
||||||
for(int k = 0; k < GameConstants::maxPlayers + GameConstants::specialFactions; ++k) {
|
for(int k = 0; k < GameConstants::maxPlayers + GameConstants::specialFactions; ++k) {
|
||||||
if(fogOfWar || k != thisTeamIndex) {
|
if(fogOfWar || k != thisTeamIndex) {
|
||||||
|
map.getSurfaceCell(i, j)->setVisible(k, false);
|
||||||
if(showWorldForPlayer(k) == true) {
|
if(showWorldForPlayer(k) == true) {
|
||||||
//map.getSurfaceCell(i, j)->setVisible(k, true);
|
|
||||||
//map.getSurfaceCell(i, j)->setExplored(k, true);
|
|
||||||
|
|
||||||
const Vec2i pos(i,j);
|
const Vec2i pos(i,j);
|
||||||
Vec2i surfPos= pos;
|
Vec2i surfPos= pos;
|
||||||
|
|
||||||
@@ -1255,9 +1253,9 @@ void World::computeFow(int factionIdxToTick) {
|
|||||||
float alpha=maxAlpha;
|
float alpha=maxAlpha;
|
||||||
minimap.incFowTextureAlphaSurface(surfPos, alpha);
|
minimap.incFowTextureAlphaSurface(surfPos, alpha);
|
||||||
}
|
}
|
||||||
else {
|
//else {
|
||||||
map.getSurfaceCell(i, j)->setVisible(k, false);
|
// map.getSurfaceCell(i, j)->setVisible(k, false);
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user