mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
M_EndModeAttackRun: Fix recursivity issue that resulted in natural ends to replays losing track of restoreMenu
This commit is contained in:
parent
7f0df71558
commit
9b9c2cbcb6
1 changed files with 9 additions and 2 deletions
|
|
@ -54,15 +54,22 @@ menu_t PAUSE_PlaybackMenuDef = {
|
|||
|
||||
void M_EndModeAttackRun(void)
|
||||
{
|
||||
G_CheckDemoStatus(); // Cancel recording
|
||||
if (demo.playback)
|
||||
{
|
||||
G_CheckDemoStatus(); // Cancel recording
|
||||
return;
|
||||
}
|
||||
|
||||
Command_ExitGame_f(); // Clear a bunch of state
|
||||
|
||||
if (!modeattacking)
|
||||
return;
|
||||
|
||||
modeattacking = ATTACKING_NONE; // Kept until now because of Command_ExitGame_f
|
||||
|
||||
if (demo.attract == DEMO_ATTRACT_TITLE)
|
||||
{
|
||||
D_StartTitle();
|
||||
D_SetDeferredStartTitle(true);
|
||||
}
|
||||
else if (demo.attract == DEMO_ATTRACT_CREDITS)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue