From: Vadim Trochinsky Date: Mon, 17 May 2010 22:37:12 +0000 (+0200) Subject: Fix writing settings that take effect on restart X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=e8ddf63c8ead49835644a81a2fdfc25d819d0257;p=lugaru.git Fix writing settings that take effect on restart --- 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";