diff options
| author | Jonas Ask | 2009-10-27 16:28:06 +0000 |
|---|---|---|
| committer | Jonas Ask | 2009-10-27 16:28:06 +0000 |
| commit | cd55022f5f2dff532a4c85567cff4667ccf2a118 (patch) | |
| tree | ee7a415d4989b173046274f1dc5179c6eb4d5921 /Config.cpp | |
| parent | 3f69d59282b93bcac0d4244f7ba8a344dc8fe4ed (diff) | |
| download | stonesense-cd55022f5f2dff532a4c85567cff4667ccf2a118.tar.gz stonesense-cd55022f5f2dff532a4c85567cff4667ccf2a118.tar.bz2 stonesense-cd55022f5f2dff532a4c85567cff4667ccf2a118.tar.xz | |
Made Auto-reload step size configurable. Patch by Jim Hester.
Diffstat (limited to 'Config.cpp')
| -rw-r--r-- | Config.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -83,6 +83,11 @@ void parseConfigLine( string line ){ string result = parseStrFromLine( "ALLCREATURES", line );
config.show_all_creatures = (result == "YES");
}
+ if( line.find("AUTO_RELOAD_STEP") != -1){
+ int value = parseIntFromLine( "AUTO_RELOAD_STEP", line);
+ if(value < 50) value = 50;
+ config.automatic_reload_step = value;
+ }
if( line.find("DEBUGMODE") != -1){
string result = parseStrFromLine( "DEBUGMODE", line );
config.debug_mode = (result == "YES");
|
