From: Côme Chilliet Date: Sat, 10 Dec 2016 19:10:05 +0000 (+0700) Subject: Updating newdetail more often to avoid storing bad value, and added a newline at... X-Git-Url: https://git.jsancho.org/?p=lugaru.git;a=commitdiff_plain;h=6d0b9e981b34f3141c488bbe13db3f8cbbb5d754 Updating newdetail more often to avoid storing bad value, and added a newline at the end of the config file --- diff --git a/Source/Settings.cpp b/Source/Settings.cpp index fe6c37b..fd3e03d 100644 --- a/Source/Settings.cpp +++ b/Source/Settings.cpp @@ -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; }