mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-04 04:36:21 +00:00
EndOfLevel: Check player->exiting > 0 && <= TICRATE, fixes start-of-level fading in 2.1
Braces in y_inter.c
This commit is contained in:
parent
54d02e1d9a
commit
e0feed7210
2 changed files with 3 additions and 1 deletions
|
|
@ -8792,7 +8792,7 @@ void P_PlayerThink(player_t *player)
|
|||
// Same check as below, just at 1 second before
|
||||
// so we can fade music
|
||||
if (!exitfadestarted &&
|
||||
player->exiting <= 1*TICRATE &&
|
||||
player->exiting > 0 && player->exiting <= 1*TICRATE &&
|
||||
(!multiplayer || gametype == GT_COOP ? !mapheaderinfo[gamemap-1]->musicinterfadeout : true) &&
|
||||
// don't fade if we're fading during intermission. follows Y_StartIntermission intertype = int_coop
|
||||
(gametype == GT_RACE || gametype == GT_COMPETITION ? countdown2 == 0 : true) && // don't fade on timeout
|
||||
|
|
|
|||
|
|
@ -696,10 +696,12 @@ void Y_Ticker(void)
|
|||
boolean anybonuses = false;
|
||||
|
||||
if (!intertic) // first time only
|
||||
{
|
||||
if (mapheaderinfo[gamemap-1]->musicinterfadeout)
|
||||
S_FadeOutStopMusic(mapheaderinfo[gamemap-1]->musicinterfadeout);
|
||||
else
|
||||
S_ChangeMusicInternal("_clear", false); // don't loop it
|
||||
}
|
||||
|
||||
if (intertic < TICRATE) // one second pause before tally begins
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue