From 25a8f44ee1514ced845b4710cf8b11853323a3d5 Mon Sep 17 00:00:00 2001 From: titiger Date: Wed, 19 Nov 2014 22:43:45 +0100 Subject: [PATCH] This fixes black background for loaded games which are paused --- source/glest_game/world/world.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/glest_game/world/world.cpp b/source/glest_game/world/world.cpp index f1799769..7003a2e4 100644 --- a/source/glest_game/world/world.cpp +++ b/source/glest_game/world/world.cpp @@ -418,6 +418,11 @@ void World::init(Game *game, bool createUnits, bool initFactions){ //initExplorationState(); ... was only for !fog-of-war, now handled in initCells() computeFow(); + if(getFrameCount()>10){ + // 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. + minimap.updateFowTex(1.f); + } if(gotError == true) { throw megaglest_runtime_error(sErrBuf,!skipStackTrace);