X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FUser%2FSettings.cpp;h=b1970d30b792041e9c3991ff844e550cd5102068;hb=8b8230c564e1f0063b381e77bf6222af9f2e678d;hp=5f7909ef20c3e8a60f465df80237a374c016e31e;hpb=ed3662c0852c4312a612b4fc35bd03aba8d13db7;p=lugaru.git diff --git a/Source/User/Settings.cpp b/Source/User/Settings.cpp index 5f7909e..b1970d3 100644 --- a/Source/User/Settings.cpp +++ b/Source/User/Settings.cpp @@ -36,7 +36,7 @@ void DefaultSettings() fullscreen = 0; floatjump = 0; autoslomo = 1; - decals = 1; + decalstoggle = true; invertmouse = 0; bloodtoggle = 0; foliage = 1; @@ -62,7 +62,7 @@ void DefaultSettings() rightkey = SDL_SCANCODE_D; drawkey = SDL_SCANCODE_E; throwkey = SDL_SCANCODE_Q; - attackkey = MOUSEBUTTON1; + attackkey = MOUSEBUTTON_LEFT; consolekey = SDL_SCANCODE_GRAVE; newdetail = detail; @@ -117,7 +117,7 @@ void SaveSettings() opstream << "\nTrilinear:\n"; opstream << trilinear; opstream << "\nDecals(shadows,blood puddles,etc):\n"; - opstream << decals; + opstream << decalstoggle; opstream << "\nInvert mouse:\n"; opstream << invertmouse; opstream << "\nGamespeed:\n"; @@ -216,7 +216,7 @@ bool LoadSettings() ipstream >> mousejump; } else if ( !strncmp(setting, "Ambient sound", 13) ) { ipstream >> ambientsound; - } else if ( !strncmp(setting, "Blood ", 6) ) { + } else if ( !strncmp(setting, "Blood", 5) ) { ipstream >> bloodtoggle; } else if ( !strncmp(setting, "Auto slomo", 10) ) { ipstream >> autoslomo; @@ -227,7 +227,7 @@ bool LoadSettings() } else if ( !strncmp(setting, "Trilinear", 9) ) { ipstream >> trilinear; } else if ( !strncmp(setting, "Decals", 6) ) { - ipstream >> decals; + ipstream >> decalstoggle; } else if ( !strncmp(setting, "Invert mouse", 12) ) { ipstream >> invertmouse; } else if ( !strncmp(setting, "Gamespeed", 9) ) { @@ -241,7 +241,7 @@ bool LoadSettings() ipstream >> damageeffects; } else if ( !strncmp(setting, "Text", 4) ) { ipstream >> texttoggle; - } else if ( !strncmp(setting, "Devtools", 5) ) { + } else if ( !strncmp(setting, "Devtools", 8) ) { ipstream >> devtools; } else if ( !strncmp(setting, "Show Points", 11) ) { ipstream >> showpoints;