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,30 +1464,33 @@ void P_DoPlayerExit(player_t *player, pflags_t flags)
} }
} }
if (modeattacking) if (demo.playback == false)
{ {
G_UpdateRecords(); if (modeattacking == true)
}
if (!losing)
{
profile_t *pr = PR_GetPlayerProfile(player);
if (pr != NULL)
{ {
pr->wins++; G_UpdateRecords();
PR_SaveProfiles();
} }
if (P_IsLocalPlayer(player) && player->skin < numskins) if (!losing)
{ {
skins[player->skin].records.wins++; profile_t *pr = PR_GetPlayerProfile(player);
if (pr != NULL)
{
pr->wins++;
PR_SaveProfiles();
}
if (P_IsLocalPlayer(player) && player->skin < numskins)
{
skins[player->skin].records.wins++;
}
} }
if (player == &players[consoleplayer])
demo.savebutton = leveltime;
} }
player->karthud[khud_cardanimation] = 0; // srb2kart: reset battle animation player->karthud[khud_cardanimation] = 0; // srb2kart: reset battle animation
if (player == &players[consoleplayer])
demo.savebutton = leveltime;
} }
// //