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:
terminx 2012-10-14 22:13:49 +00:00
parent 28fab0d06d
commit 2fde79b4bc

View file

@ -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);
} }