texttoggle=1;
alwaysblur=0;
showpoints=0;
+ showdamagebar=0;
immediate=0;
velocityblur=0;
volume = 0.8f;
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";
opstream << KeyToChar(game.attackkey);
opstream << "\nChat key:\n";
opstream << KeyToChar(game.chatkey);
+ opstream << "\nDamage bar:\n";
+ opstream << showdamagebar;
+ opstream << "\nStereoMode:\n";
+ opstream << stereomode;
+ opstream << "\nStereoSeparation:\n";
+ opstream << stereoseparation;
+ opstream << "\nStereoReverse:\n";
+ opstream << stereoreverse;
opstream.close();
}
} else if ( !strncmp(setting, "Chat key", 8) ) {
ipstream >> string;
game.chatkey = CharToKey(string);
+ } else if ( !strncmp(setting, "Damage bar", 10) ) {
+ ipstream >> showdamagebar;
+ } else if ( !strncmp(setting, "StereoMode", 10) ) {
+ int i;
+ ipstream >> i;
+ stereomode = (StereoMode)i;
+ } else if ( !strncmp(setting, "StereoSeparation", 16) ) {
+ ipstream >> stereoseparation;
+ } else if ( !strncmp(setting, "StereoReverse", 13) ) {
+ ipstream >> stereoreverse;
} else {
ipstream >> string;
fprintf(stderr, "Unknown config option '%s' with value '%s'. Ignoring.\n", setting, string);