This fixes black background for loaded games which are paused
This commit is contained in:
parent
5676a055ba
commit
25a8f44ee1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue