]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Settings.cpp
Reading debug mode from config again, but command line option overrides it
[lugaru.git] / Source / Settings.cpp
index 97cdbb2d665b0f83665c3fd9158da7d950756271..fe6c37b13881a169684e3178fabd493fe574dd34 100644 (file)
@@ -52,6 +52,7 @@ void DefaultSettings()
     velocityblur = 0;
     volume = 0.8f;
     ambientsound = 1;
+    debugmode = 0;
 
     crouchkey = SDL_SCANCODE_LSHIFT;
     jumpkey = SDL_SCANCODE_SPACE;
@@ -241,6 +242,8 @@ bool LoadSettings()
             ipstream >> damageeffects;
         } else if ( !strncmp(setting, "Text", 4) ) {
             ipstream >> texttoggle;
+        } else if ( !strncmp(setting, "Debug", 5) ) {
+            ipstream >> debugmode;
         } else if ( !strncmp(setting, "Show Points", 11) ) {
             ipstream >> showpoints;
         } else if ( !strncmp(setting, "Always Blur", 11) ) {