From 94c8a08d047cf31974fdadbae2af014e059c974b Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Wed, 16 Jun 2010 06:25:32 +0000 Subject: [PATCH] - bugfix for particles showing when fog of war on but they shouldn't show --- source/glest_game/graphics/renderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/glest_game/graphics/renderer.cpp b/source/glest_game/graphics/renderer.cpp index 2d14dbc9b..b8427002c 100644 --- a/source/glest_game/graphics/renderer.cpp +++ b/source/glest_game/graphics/renderer.cpp @@ -1571,7 +1571,7 @@ void Renderer::renderUnits(const int renderFps, const int worldFrameCount) { vctEntity.push_back(RenderEntity(retUnit,NULL,Vec2i(),unit,world->getFaction(i)->getTexture())); } } - else if(unit->getVisible() == true){ + else { unit->setVisible(false); } }