From 55a27b4c6bd9210ab6cbeaa1db5ef3e88094c4cb Mon Sep 17 00:00:00 2001 From: titiger Date: Wed, 19 Nov 2014 23:34:18 +0100 Subject: [PATCH] every game initialized with a frame count>1 is a somehwo loaded game This means the Fow needs to be set like it is inside a match. --- source/glest_game/world/world.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/glest_game/world/world.cpp b/source/glest_game/world/world.cpp index 9a90a447..cddec1fe 100644 --- a/source/glest_game/world/world.cpp +++ b/source/glest_game/world/world.cpp @@ -418,9 +418,9 @@ void World::init(Game *game, bool createUnits, bool initFactions){ //initExplorationState(); ... was only for !fog-of-war, now handled in initCells() computeFow(); - if(getFrameCount()>10){ + if(getFrameCount()>1){ // this is needed for games that are loaded to "switch the light on". - // otherwise the FowTexture is completely black as in the beginning of a game. + // otherwise the FowTexture is completely black like in the beginning of a game. minimap.updateFowTex(1.f); }