summaryrefslogtreecommitdiff
path: root/Config.cpp
diff options
context:
space:
mode:
authorJapa2010-05-16 14:02:26 +0000
committerJapa2010-05-16 14:02:26 +0000
commit72a82d2e50e9232c79edb7905dd2a214a95d66b6 (patch)
treeb54d37a26f195cf7821598a0381bf7f45f9fde23 /Config.cpp
parent2525b740d814f3ce8694effd840e6f30905d0d0a (diff)
downloadstonesense-72a82d2e50e9232c79edb7905dd2a214a95d66b6.tar.gz
stonesense-72a82d2e50e9232c79edb7905dd2a214a95d66b6.tar.bz2
stonesense-72a82d2e50e9232c79edb7905dd2a214a95d66b6.tar.xz
made day/night toggleable
Diffstat (limited to 'Config.cpp')
-rw-r--r--Config.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/Config.cpp b/Config.cpp
index 1ce2349..25c890b 100644
--- a/Config.cpp
+++ b/Config.cpp
@@ -544,12 +544,16 @@ void parseConfigLine( string line ){
if(value < 0) value = 0;
config.colors.white_b = value;
}
- if( line.find("[RENDERER") != -1){
+ if( line.find("[RENDERER") != -1){
string result = parseStrFromLine( "RENDERER", line );
config.opengl = (result == "OPENGL");
config.software = (result == "SOFTWARE");
config.directX = (result == "DIRECTX");
}
+ if( line.find("[NIGHT") != -1){
+ string result = parseStrFromLine( "NIGHT", line );
+ config.dayNightCycle = (result == "YES");
+ }
}