Skip to content

Commit

Permalink
Fix #5320
Browse files Browse the repository at this point in the history
  • Loading branch information
ashdnazg committed Jul 27, 2016
1 parent 6292ca3 commit b285264
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions rts/Rendering/Env/Decals/GroundDecalHandler.cpp
Expand Up @@ -963,12 +963,13 @@ void CGroundDecalHandler::ForceRemoveSolidObject(CSolidObject* object)
void CGroundDecalHandler::UnitMoved(const CUnit* unit) { AddDecal(const_cast<CUnit*>(unit), unit->pos); }

void CGroundDecalHandler::GhostDestroyed(GhostSolidObject* gb) {
if (gb->decal)
if (gb->decal) {
gb->decal->gbOwner = NULL;

//If a ghost wasn't drawn, remove the decal
if (gb->lastDrawFrame < (globalRendering->drawFrame - 1))
gb->decal->alpha = 0.0f;
//If a ghost wasn't drawn, remove the decal
if (gb->lastDrawFrame < (globalRendering->drawFrame - 1))
gb->decal->alpha = 0.0f;
}
}


Expand Down

0 comments on commit b285264

Please sign in to comment.