]> git.jsancho.org Git - lugaru.git/commitdiff
Fix writing settings that take effect on restart
authorVadim Trochinsky <vadim.trochinsky@gmail.com>
Mon, 17 May 2010 22:37:12 +0000 (00:37 +0200)
committerVadim Trochinsky <vadim.trochinsky@gmail.com>
Mon, 17 May 2010 22:37:12 +0000 (00:37 +0200)
Source/Settings.cpp

index 8261ed2b0d0247b35cf925c9c31408d6777f689a..34cf99fff1ae1ded490e3ee2b8722c2813eeb11e 100644 (file)
@@ -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";