mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-22 02:00:11 +00:00
Merge branch 'failed-timeattack-keys' into 'master'
G_DoCompleted: Gamedata-handling updates See merge request KartKrew/Kart!1738
This commit is contained in:
commit
c50fdc254c
1 changed files with 8 additions and 4 deletions
12
src/g_game.c
12
src/g_game.c
|
|
@ -4158,7 +4158,10 @@ static void G_DoCompleted(void)
|
|||
// Then, do gamedata-relevant material.
|
||||
// This has to be done second because some Challenges
|
||||
// are dependent on round standings.
|
||||
if (legitimateexit && !demo.playback && !mapreset)
|
||||
if (legitimateexit && !demo.playback && !mapreset
|
||||
&& ((modeattacking == ATTACKING_NONE)
|
||||
|| !(players[consoleplayer].pflags & PF_NOCONTEST))
|
||||
)
|
||||
{
|
||||
if (gametype != GT_TUTORIAL)
|
||||
{
|
||||
|
|
@ -4174,11 +4177,12 @@ static void G_DoCompleted(void)
|
|||
gamedata->roundsplayed[roundtype]++;
|
||||
}
|
||||
gamedata->pendingkeyrounds++;
|
||||
|
||||
M_UpdateUnlockablesAndExtraEmblems(true, true);
|
||||
gamedata->deferredsave = true;
|
||||
}
|
||||
|
||||
M_UpdateUnlockablesAndExtraEmblems(true, true);
|
||||
// eh, why not always save? makes sure playtime is never lost
|
||||
gamedata->deferredsave = true;
|
||||
|
||||
// Then, update some important game state.
|
||||
{
|
||||
legitimateexit = false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue