Commit d8934405 authored by Dino Bollinger's avatar Dino Bollinger Committed by Richard Gobeille
Browse files

Duke3D: Fix ST 30 sectors playing the wrong sound after save load

Fixes #75
parent f4ec044e
......@@ -2378,8 +2378,10 @@ static void postloadplayer(int32_t savegamep)
for (SPRITES_OF(STAT_FX, i))
if (sprite[i].picnum == MUSICANDSFX)
{
int soundNum = sprite[i].lotag;
T2(i) = ud.config.SoundToggle;
T1(i) = 0;
if (!((g_sounds[soundNum].m & SF_LOOP) || (sprite[i].hitag && sprite[i].hitag != soundNum)))
T1(i) = 0;
}
G_UpdateScreenArea();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment