X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FSettings.cpp;fp=Source%2FSettings.cpp;h=7f90a0756820941c5ad3b370d636a8e91e656417;hb=f250ee8330a466b35a7ba2975d3d3fed508068c2;hp=34cf99fff1ae1ded490e3ee2b8722c2813eeb11e;hpb=817c55cc65af032656e0f02f671bd619c6505cb1;p=lugaru.git diff --git a/Source/Settings.cpp b/Source/Settings.cpp index 34cf99f..7f90a07 100644 --- a/Source/Settings.cpp +++ b/Source/Settings.cpp @@ -23,6 +23,7 @@ void DefaultSettings(Game &game) { texttoggle=1; alwaysblur=0; showpoints=0; + showdamagebar=0; immediate=0; velocityblur=0; volume = 0.8f; @@ -117,6 +118,8 @@ void SaveSettings(Game &game) { opstream << KeyToChar(game.attackkey); opstream << "\nChat key:\n"; opstream << KeyToChar(game.chatkey); + opstream << "\nDamage bar:\n"; + opstream << showdamagebar; opstream.close(); } @@ -233,6 +236,8 @@ bool LoadSettings(Game &game) { } else if ( !strncmp(setting, "Chat key", 8) ) { ipstream >> string; game.chatkey = CharToKey(string); + } else if ( !strncmp(setting, "Damage bar", 10) ) { + ipstream >> showdamagebar; } else { ipstream >> string; fprintf(stderr, "Unknown config option '%s' with value '%s'. Ignoring.\n", setting, string);