From 07ac33ec99bfdb89ad5d45208c12bd2258118515 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Mon, 11 Nov 2013 18:34:51 +0000 Subject: [PATCH] bugfix for performance enhancement --- source/glest_game/world/world.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/glest_game/world/world.cpp b/source/glest_game/world/world.cpp index 919fe462..3b9a2adc 100644 --- a/source/glest_game/world/world.cpp +++ b/source/glest_game/world/world.cpp @@ -2520,7 +2520,7 @@ void World::computeFow() { // Once we have calculated fog of war texture alpha, will we cache it so that we // can restore it later - if(cacheFowAlphaTexture == false) { + if(cacheFowAlphaTexture == false && resetFowAlphaFactionCount > 0) { cacheFowAlphaTexture = true; cacheFowAlphaTextureFogOfWarValue = fogOfWar; minimap.copyFowTexAlphaSurface();