X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FSettings.cpp;h=e0b4db1a0d9c39e7d7c66b4bf1475d6fc21ca8e5;hb=87d53cb937619e05c0516a6f2f57f7da0d415c27;hp=38bf9b2c9785fca67b03e18ec375bca33d23523f;hpb=dcacd1c62fda9af9a042b2327041ea057652f1b3;p=lugaru.git diff --git a/Source/Settings.cpp b/Source/Settings.cpp index 38bf9b2..e0b4db1 100644 --- a/Source/Settings.cpp +++ b/Source/Settings.cpp @@ -32,6 +32,7 @@ void DefaultSettings() usermousesensitivity = 1; newscreenwidth = kContextWidth = 640; newscreenheight = kContextHeight = 480; + fullscreen = 0; kBitsPerPixel = 32; floatjump = 0; autoslomo = 1; @@ -65,7 +66,6 @@ void DefaultSettings() throwkey = SDL_SCANCODE_Q; attackkey = MOUSEBUTTON1; consolekey = SDL_SCANCODE_GRAVE; - chatkey = SDL_SCANCODE_T; } void SaveSettings() @@ -87,6 +87,8 @@ void SaveSettings() opstream << newscreenwidth; opstream << "\nScreenheight:\n"; opstream << newscreenheight; + opstream << "\nFullscreen:\n"; + opstream << fullscreen; opstream << "\nMouse sensitivity:\n"; opstream << usermousesensitivity; opstream << "\nBlur(0,1):\n"; @@ -157,8 +159,6 @@ void SaveSettings() opstream << attackkey; opstream << "\nConsole key:\n"; opstream << consolekey; - opstream << "\nChat key:\n"; - opstream << chatkey; opstream << "\nDamage bar:\n"; opstream << showdamagebar; opstream << "\nStereoMode:\n"; @@ -201,6 +201,8 @@ bool LoadSettings() ipstream >> kContextWidth; } else if ( !strncmp(setting, "Screenheight", 12) ) { ipstream >> kContextHeight; + } else if ( !strncmp(setting, "Fullscreen", 10) ) { + ipstream >> fullscreen; } else if ( !strncmp(setting, "Mouse sensitivity", 17) ) { ipstream >> usermousesensitivity; } else if ( !strncmp(setting, "Blur", 4) ) { @@ -278,8 +280,6 @@ bool LoadSettings() ipstream >> attackkey; } else if ( !strncmp(setting, "Console key", 11) ) { ipstream >> consolekey; - } else if ( !strncmp(setting, "Chat key", 8) ) { - ipstream >> chatkey; } else if ( !strncmp(setting, "Damage bar", 10) ) { ipstream >> showdamagebar; } else if ( !strncmp(setting, "StereoMode", 10) ) {