mute suffocation sound when sfx is muted
This commit is contained in:
parent
f583200b13
commit
212f62fbc6
|
@ -278,7 +278,11 @@ pub fn play_gasp_sfx(
|
|||
continue;
|
||||
}
|
||||
if suit.oxygen <= 0.0 && !settings.god_mode {
|
||||
if settings.mute_sfx {
|
||||
sink.set_volume(0.0);
|
||||
} else {
|
||||
sink.set_volume(0.6);
|
||||
}
|
||||
sink.play();
|
||||
} else {
|
||||
if !sink.is_paused() {
|
||||
|
|
Loading…
Reference in a new issue