summaryrefslogtreecommitdiff
path: root/Config.cpp
diff options
context:
space:
mode:
authorJonas Ask2009-10-27 16:28:06 +0000
committerJonas Ask2009-10-27 16:28:06 +0000
commitcd55022f5f2dff532a4c85567cff4667ccf2a118 (patch)
treeee7a415d4989b173046274f1dc5179c6eb4d5921 /Config.cpp
parent3f69d59282b93bcac0d4244f7ba8a344dc8fe4ed (diff)
downloadstonesense-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.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Config.cpp b/Config.cpp
index 05b482b..cde1c3f 100644
--- a/Config.cpp
+++ b/Config.cpp
@@ -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");