void DefaultSettings()
{
- detail = 1;
- ismotionblur = 0;
+ detail = 2;
+ ismotionblur = 1;
usermousesensitivity = 1;
- newscreenwidth = kContextWidth = 640;
- newscreenheight = kContextHeight = 480;
+ newscreenwidth = kContextWidth = 1024;
+ newscreenheight = kContextHeight = 768;
+ fullscreen = 0;
kBitsPerPixel = 32;
floatjump = 0;
autoslomo = 1;
throwkey = SDL_SCANCODE_Q;
attackkey = MOUSEBUTTON1;
consolekey = SDL_SCANCODE_GRAVE;
- chatkey = SDL_SCANCODE_T;
}
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";
opstream << attackkey;
opstream << "\nConsole key:\n";
opstream << consolekey;
- opstream << "\nChat key:\n";
- opstream << chatkey;
opstream << "\nDamage bar:\n";
opstream << showdamagebar;
opstream << "\nStereoMode:\n";
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) ) {
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) ) {
if (detail < 0)
detail = 0;
if (screenwidth < 0)
- screenwidth = 640;
+ screenwidth = 1024;
if (screenheight < 0)
- screenheight = 480;
+ screenheight = 768;
return true;
}