]> git.jsancho.org Git - lugaru.git/commitdiff
Updating newdetail more often to avoid storing bad value, and added a newline at...
authorCôme Chilliet <come@chilliet.eu>
Sat, 10 Dec 2016 19:10:05 +0000 (02:10 +0700)
committerCôme Chilliet <come@chilliet.eu>
Sat, 10 Dec 2016 19:10:05 +0000 (02:10 +0700)
Source/Settings.cpp

index fe6c37b13881a169684e3178fabd493fe574dd34..fd3e03d4fde7fa292f123b274b9130c21f6bdee1 100644 (file)
@@ -64,6 +64,8 @@ void DefaultSettings()
     throwkey = SDL_SCANCODE_Q;
     attackkey = MOUSEBUTTON1;
     consolekey = SDL_SCANCODE_GRAVE;
+
+    newdetail = detail;
 }
 
 void SaveSettings()
@@ -166,6 +168,7 @@ void SaveSettings()
     opstream << stereoseparation;
     opstream << "\nStereoReverse:\n";
     opstream << stereoreverse;
+    opstream << "\n";
     opstream.close();
 }
 
@@ -313,5 +316,6 @@ bool LoadSettings()
     if (screenheight < 0)
         screenheight = 768;
 
+    newdetail = detail;
     return true;
 }