From e8ddf63c8ead49835644a81a2fdfc25d819d0257 Mon Sep 17 00:00:00 2001 From: Vadim Trochinsky Date: Tue, 18 May 2010 00:37:12 +0200 Subject: [PATCH] Fix writing settings that take effect on restart --- Source/Settings.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Settings.cpp b/Source/Settings.cpp index 8261ed2..34cf99f 100644 --- a/Source/Settings.cpp +++ b/Source/Settings.cpp @@ -45,15 +45,15 @@ void DefaultSettings(Game &game) { void SaveSettings(Game &game) { ofstream opstream(ConvertFileName(":Data:config.txt", "w")); opstream << "Screenwidth:\n"; - opstream << kContextWidth; + opstream << game.newscreenwidth; opstream << "\nScreenheight:\n"; - opstream << kContextHeight; + opstream << game.newscreenheight; opstream << "\nMouse sensitivity:\n"; opstream << usermousesensitivity; opstream << "\nBlur(0,1):\n"; opstream << ismotionblur; opstream << "\nOverall Detail(0,1,2) higher=better:\n"; - opstream << detail; + opstream << game.newdetail; opstream << "\nFloating jump:\n"; opstream << floatjump; opstream << "\nMouse jump:\n"; -- 2.39.2