mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Prevent music changes from playing when unfocused
This commit is contained in:
parent
b91701c948
commit
b028f33455
1 changed files with 4 additions and 0 deletions
|
|
@ -1906,6 +1906,10 @@ static boolean S_PlayMusic(boolean looping)
|
||||||
}
|
}
|
||||||
|
|
||||||
S_InitMusicVolume(); // switch between digi and sequence volume
|
S_InitMusicVolume(); // switch between digi and sequence volume
|
||||||
|
|
||||||
|
if (window_notinfocus && !cv_playmusicifunfocused.value)
|
||||||
|
I_PauseSong();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue