mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 09:21:36 +00:00
A potential fix for MUSICANDSFX problems after loading a savegame. I was never able to reproduce the issue myself, but something like this seems like a good idea anyway. Thoughts?
git-svn-id: https://svn.eduke32.com/eduke32@3083 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
28fab0d06d
commit
2fde79b4bc
1 changed files with 13 additions and 0 deletions
|
@ -1790,6 +1790,19 @@ static void postloadplayer(int32_t savegamep)
|
||||||
//3.5
|
//3.5
|
||||||
if (savegamep)
|
if (savegamep)
|
||||||
{
|
{
|
||||||
|
int32_t i = headspritestat[STAT_FX];
|
||||||
|
|
||||||
|
while (i >= 0)
|
||||||
|
{
|
||||||
|
if (sprite[i].picnum == MUSICANDSFX)
|
||||||
|
{
|
||||||
|
T2 = ud.config.SoundToggle;
|
||||||
|
T1 = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
i = nextspritestat[i];
|
||||||
|
}
|
||||||
|
|
||||||
G_UpdateScreenArea();
|
G_UpdateScreenArea();
|
||||||
FX_SetReverb(0);
|
FX_SetReverb(0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue