mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-26 20:31:30 +00:00
Fix sounds playing multiple times during intro if interpolation is on
This commit is contained in:
parent
40cd1c797c
commit
c351129658
1 changed files with 14 additions and 10 deletions
|
@ -261,16 +261,6 @@ void F_IntroDrawer(void)
|
||||||
// DRAW A FULL PIC INSTEAD OF FLAT!
|
// DRAW A FULL PIC INSTEAD OF FLAT!
|
||||||
if (intro_scenenum == 0)
|
if (intro_scenenum == 0)
|
||||||
{
|
{
|
||||||
if (finalecount == 8)
|
|
||||||
S_StartSound(NULL, sfx_vroom);
|
|
||||||
else if (finalecount == 47)
|
|
||||||
{
|
|
||||||
// Need to use M_Random otherwise it always uses the same sound
|
|
||||||
INT32 rskin = M_RandomKey(numskins);
|
|
||||||
UINT8 rtaunt = M_RandomKey(2);
|
|
||||||
sfxenum_t rsound = skins[rskin].soundsid[SKSKBST1+rtaunt];
|
|
||||||
S_StartSound(NULL, rsound);
|
|
||||||
}
|
|
||||||
background = W_CachePatchName("KARTKREW", PU_CACHE);
|
background = W_CachePatchName("KARTKREW", PU_CACHE);
|
||||||
highres = true;
|
highres = true;
|
||||||
}
|
}
|
||||||
|
@ -306,6 +296,20 @@ void F_IntroTicker(void)
|
||||||
|
|
||||||
timetonext--;
|
timetonext--;
|
||||||
|
|
||||||
|
if (intro_scenenum == 0)
|
||||||
|
{
|
||||||
|
if (finalecount == 8)
|
||||||
|
S_StartSound(NULL, sfx_vroom);
|
||||||
|
else if (finalecount == 47)
|
||||||
|
{
|
||||||
|
// Need to use M_Random otherwise it always uses the same sound
|
||||||
|
INT32 rskin = M_RandomKey(numskins);
|
||||||
|
UINT8 rtaunt = M_RandomKey(2);
|
||||||
|
sfxenum_t rsound = skins[rskin].soundsid[SKSKBST1+rtaunt];
|
||||||
|
S_StartSound(NULL, rsound);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
F_WriteText();
|
F_WriteText();
|
||||||
|
|
||||||
// check for skipping
|
// check for skipping
|
||||||
|
|
Loading…
Reference in a new issue