mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-21 17:00:59 +00:00
Don't decrement fade timer if song is paused
This commit is contained in:
parent
5ea8dc3dfa
commit
5f87f4a47a
1 changed files with 2 additions and 0 deletions
|
@ -537,6 +537,8 @@ static UINT32 music_fade(UINT32 interval, void *param)
|
||||||
do_fading_callback();
|
do_fading_callback();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
else if (songpaused) // don't decrement timer
|
||||||
|
return interval;
|
||||||
else if ((fading_timer -= 10) <= 0)
|
else if ((fading_timer -= 10) <= 0)
|
||||||
{
|
{
|
||||||
internal_volume = fading_target;
|
internal_volume = fading_target;
|
||||||
|
|
Loading…
Reference in a new issue