mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-24 05:10:42 -04:00
Rememeber to delete the old option line for usesound/usemusic.
Otherwise they interfere with the soundvolume/musicvolume lines
This commit is contained in:
parent
3d01dbab20
commit
a31b21ad6e
@ -33,7 +33,10 @@ namespace ClassicalSharp.Audio {
|
|||||||
static int GetVolume(string volKey, string boolKey) {
|
static int GetVolume(string volKey, string boolKey) {
|
||||||
int volume = Options.GetInt(volKey, 0, 100, 0);
|
int volume = Options.GetInt(volKey, 0, 100, 0);
|
||||||
if (volume != 0) return volume;
|
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) { }
|
public void Ready(Game game) { }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user