Rememeber to delete the old option line for usesound/usemusic.

Otherwise they interfere with the soundvolume/musicvolume lines
This commit is contained in:
UnknownShadow200 2017-06-26 19:46:39 +10:00
parent 3d01dbab20
commit a31b21ad6e

View File

@ -33,7 +33,10 @@ namespace ClassicalSharp.Audio {
static int GetVolume(string volKey, string boolKey) {
int volume = Options.GetInt(volKey, 0, 100, 0);
if (volume != 0) return volume;
return Options.GetBool(boolKey, false) ? 100 : 0;
volume = Options.GetBool(boolKey, false) ? 100 : 0;
Options.Set<string>(boolKey, null);
return volume;
}
public void Ready(Game game) { }