This fixes black background for loaded games which are paused

This commit is contained in:
titiger 2014-11-19 22:43:45 +01:00
parent 5676a055ba
commit 25a8f44ee1
1 changed files with 5 additions and 0 deletions

View File

@ -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);