Fixed unfinished building FOW bug

This commit is contained in:
mathusummut
2018-09-24 15:19:05 +02:00
parent 0f26a90df7
commit 98558d0177
2 changed files with 2 additions and 4 deletions

View File

@@ -5479,7 +5479,7 @@ namespace Glest {
}
void Unit::exploreCells(bool forceRefresh) {
if (this->isOperative() == true) {
if (this->isAlive() == true) {
const Vec2i & newPos = this->getCenteredPos();
int sightRange =
this->getType()->getTotalSight(this->getTotalUpgrade());

View File

@@ -2686,9 +2686,7 @@ namespace Glest {
// compute fog of war render texture
if (fogOfWar == true &&
faction->getTeam() == thisTeamIndex &&
unit->isOperative() == true) {
//printf("computeFow unit->isOperative() == true\n");
unit->isAlive() == true) {
const FowAlphaCellsLookupItem &cellList = unit->getCachedFow();
for (std::map<Vec2i, float>::const_iterator iterMap = cellList.surfPosAlphaList.begin();