mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Tally: Fix intermission music being played on rounds without intermissions
This commit is contained in:
parent
858eecaef3
commit
17cd1550a1
3 changed files with 20 additions and 7 deletions
|
|
@ -1426,6 +1426,8 @@ void K_TickPlayerTally(player_t *player)
|
||||||
while (player->tally.state != TALLY_ST_DONE && player->tally.state != TALLY_ST_GAMEOVER_DONE);
|
while (player->tally.state != TALLY_ST_DONE && player->tally.state != TALLY_ST_GAMEOVER_DONE);
|
||||||
|
|
||||||
player->tally.delay = std::min(player->tally.delay, TICRATE);
|
player->tally.delay = std::min(player->tally.delay, TICRATE);
|
||||||
|
|
||||||
|
if (Y_ShouldDoIntermission())
|
||||||
musiccountdown = 2; // gets decremented to 1 in G_Ticker to immediately trigger intermission music [blows raspberry]
|
musiccountdown = 2; // gets decremented to 1 in G_Ticker to immediately trigger intermission music [blows raspberry]
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -1937,12 +1937,7 @@ void Y_Ticker(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
boolean Y_ShouldDoIntermission(void)
|
||||||
// Y_DetermineIntermissionType
|
|
||||||
//
|
|
||||||
// Determines the intermission type from the current gametype.
|
|
||||||
//
|
|
||||||
void Y_DetermineIntermissionType(void)
|
|
||||||
{
|
{
|
||||||
// no intermission for GP events
|
// no intermission for GP events
|
||||||
if ((grandprixinfo.gp == true && grandprixinfo.eventmode != GPEVENT_NONE)
|
if ((grandprixinfo.gp == true && grandprixinfo.eventmode != GPEVENT_NONE)
|
||||||
|
|
@ -1954,6 +1949,21 @@ void Y_DetermineIntermissionType(void)
|
||||||
|| (nextmapoverride == NEXTMAP_TUTORIALCHALLENGE+1 || tutorialchallenge != TUTORIALSKIP_NONE)
|
|| (nextmapoverride == NEXTMAP_TUTORIALCHALLENGE+1 || tutorialchallenge != TUTORIALSKIP_NONE)
|
||||||
// or title screen attract demos
|
// or title screen attract demos
|
||||||
|| (demo.playback && demo.attract == DEMO_ATTRACT_TITLE))
|
|| (demo.playback && demo.attract == DEMO_ATTRACT_TITLE))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// Y_DetermineIntermissionType
|
||||||
|
//
|
||||||
|
// Determines the intermission type from the current gametype.
|
||||||
|
//
|
||||||
|
void Y_DetermineIntermissionType(void)
|
||||||
|
{
|
||||||
|
// no intermission for GP events
|
||||||
|
if (!Y_ShouldDoIntermission())
|
||||||
{
|
{
|
||||||
intertype = int_none;
|
intertype = int_none;
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,7 @@ void Y_DrawIntermissionButton(INT32 startslide, INT32 through);
|
||||||
void Y_StartIntermission(void);
|
void Y_StartIntermission(void);
|
||||||
void Y_EndIntermission(void);
|
void Y_EndIntermission(void);
|
||||||
|
|
||||||
|
boolean Y_ShouldDoIntermission(void);
|
||||||
void Y_DetermineIntermissionType(void);
|
void Y_DetermineIntermissionType(void);
|
||||||
|
|
||||||
void Y_PlayIntermissionMusic(void);
|
void Y_PlayIntermissionMusic(void);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue