From 6d0b9e981b34f3141c488bbe13db3f8cbbb5d754 Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=B4me=20Chilliet?= Date: Sun, 11 Dec 2016 02:10:05 +0700 Subject: [PATCH] Updating newdetail more often to avoid storing bad value, and added a newline at the end of the config file --- Source/Settings.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.39.2