Merge branch 'noplaybackmedals' into 'master'

demo.playback guard

Closes #567

See merge request KartKrew/Kart!1307
This commit is contained in:
Oni 2023-06-30 07:58:33 +00:00
commit 571fe1a903

View file

@ -1464,7 +1464,9 @@ void P_DoPlayerExit(player_t *player, pflags_t flags)
}
}
if (modeattacking)
if (demo.playback == false)
{
if (modeattacking == true)
{
G_UpdateRecords();
}
@ -1484,12 +1486,13 @@ void P_DoPlayerExit(player_t *player, pflags_t flags)
}
}
player->karthud[khud_cardanimation] = 0; // srb2kart: reset battle animation
if (player == &players[consoleplayer])
demo.savebutton = leveltime;
}
player->karthud[khud_cardanimation] = 0; // srb2kart: reset battle animation
}
//
// P_DoAllPlayersExit
//