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.
This commit is contained in:
titiger 2014-11-19 23:34:18 +01:00
parent 5791f64829
commit 55a27b4c6b
1 changed files with 2 additions and 2 deletions

View File

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