Skip to content

Commit

Permalink
Added the ability to switch the fog of war off in the init file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Caldfir authored and RosaryMala committed Dec 15, 2012
1 parent f4d2483 commit 3f0c19f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,10 @@ void parseConfigLine( string line )
string result = parseStrFromLine( "NIGHT", line );
ssConfig.dayNightCycle = (result == "YES");
}
if( line.find("[FOG_OF_WAR") != -1) {
string result = parseStrFromLine( "FOG_OF_WAR", line );
ssConfig.fog_of_war = (result == "YES");
}
}


Expand Down
11 changes: 8 additions & 3 deletions resources/init.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ Background color. setting this the same as the fog color produces a nice effect.
[BACK_GREEN:158]
[BACK_BLUE:177]

Sets weather Stonesense should use a day/night effect
[NIGHT:NO]

This value, in milliseconds, is how long Stonesense waits between
reloading the map. If zero, the autoreload will be disabled until
set with Numpad+. Note that this will only work if a DF map is
Expand All @@ -81,6 +78,14 @@ Amount of time, in milliseconds, before the animation swaps to the next frame.
Now independant of map refresh.
[ANIMATION_RATE:196]

--Adventure Mode Settings--

Sets weather Stonesense should use a day/night effect.
[NIGHT:NO]

Sets weather Stonesense should shade in the fog-of-war partially hidden tiles.
[FOG_OF_WAR:YES]

--Debug Mode--

Sets Stonesense in debug mode. Adds additional information to displays.
Expand Down

0 comments on commit 3f0c19f

Please sign in to comment.