mirror of
https://github.com/glest/glest-source.git
synced 2025-09-03 04:52:34 +02:00
Fixed unfinished building FOW bug
This commit is contained in:
@@ -5479,7 +5479,7 @@ namespace Glest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Unit::exploreCells(bool forceRefresh) {
|
void Unit::exploreCells(bool forceRefresh) {
|
||||||
if (this->isOperative() == true) {
|
if (this->isAlive() == true) {
|
||||||
const Vec2i & newPos = this->getCenteredPos();
|
const Vec2i & newPos = this->getCenteredPos();
|
||||||
int sightRange =
|
int sightRange =
|
||||||
this->getType()->getTotalSight(this->getTotalUpgrade());
|
this->getType()->getTotalSight(this->getTotalUpgrade());
|
||||||
|
@@ -2686,9 +2686,7 @@ namespace Glest {
|
|||||||
// compute fog of war render texture
|
// compute fog of war render texture
|
||||||
if (fogOfWar == true &&
|
if (fogOfWar == true &&
|
||||||
faction->getTeam() == thisTeamIndex &&
|
faction->getTeam() == thisTeamIndex &&
|
||||||
unit->isOperative() == true) {
|
unit->isAlive() == true) {
|
||||||
|
|
||||||
//printf("computeFow unit->isOperative() == true\n");
|
|
||||||
|
|
||||||
const FowAlphaCellsLookupItem &cellList = unit->getCachedFow();
|
const FowAlphaCellsLookupItem &cellList = unit->getCachedFow();
|
||||||
for (std::map<Vec2i, float>::const_iterator iterMap = cellList.surfPosAlphaList.begin();
|
for (std::map<Vec2i, float>::const_iterator iterMap = cellList.surfPosAlphaList.begin();
|
||||||
|
Reference in New Issue
Block a user