mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'noplaybackmedals' into 'master'
demo.playback guard Closes #567 See merge request KartKrew/Kart!1307
This commit is contained in:
commit
571fe1a903
1 changed files with 18 additions and 15 deletions
33
src/p_user.c
33
src/p_user.c
|
|
@ -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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue