mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-19 03:51:34 +00:00
Suppress bufo spawn, bufo sound, and hud messages when exiting
This commit is contained in:
parent
36b4e88e11
commit
09cdc60697
2 changed files with 12 additions and 1 deletions
|
|
@ -5739,6 +5739,8 @@ struct messagestate_t
|
|||
return;
|
||||
}
|
||||
|
||||
if (exitcountdown)
|
||||
return;
|
||||
|
||||
if (timer == 0 && mode == MM_IN)
|
||||
S_StartSound(NULL, sfx_s3k47);
|
||||
|
|
@ -5850,6 +5852,10 @@ void K_TickMessages()
|
|||
static void K_DrawMessageFeed(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
if (exitcountdown)
|
||||
return;
|
||||
|
||||
for (i = 0; i <= r_splitscreen; i++)
|
||||
{
|
||||
messagestate_t state = messagestates[i];
|
||||
|
|
|
|||
|
|
@ -112,6 +112,11 @@ public:
|
|||
return;
|
||||
}
|
||||
|
||||
if (exitcountdown)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Fixed ofs = mobjinfo[MT_BATTLEUFO].height / 4;
|
||||
|
||||
Spawner* spawner = next(g_battleufo.previousId);
|
||||
|
|
@ -145,7 +150,7 @@ void Obj_BattleUFOThink(mobj_t *mobj)
|
|||
ufo->spawn_beam();
|
||||
}
|
||||
|
||||
if ((ufo->extravalue1 % (TICRATE*2)) == 0)
|
||||
if (!exitcountdown && (ufo->extravalue1 % (TICRATE*2)) == 0)
|
||||
{
|
||||
S_StartSound(ufo, sfx_s3ka5);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue