mirror of
https://github.com/glest/glest-source.git
synced 2025-09-02 12:32:34 +02:00
Fixed unfinished building FOW bug
This commit is contained in:
@@ -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());
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user