mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-31 05:20:51 +00:00
Please don't punish offline practice
This commit is contained in:
parent
68bf1f60f3
commit
73100b22d5
1 changed files with 4 additions and 21 deletions
25
src/g_game.c
25
src/g_game.c
|
@ -2282,28 +2282,11 @@ static inline void G_PlayerFinishLevel(INT32 player)
|
||||||
{
|
{
|
||||||
if (legitimateexit && !demoplayback && !mapreset) // (yes you're allowed to unlock stuff this way when the game is modified)
|
if (legitimateexit && !demoplayback && !mapreset) // (yes you're allowed to unlock stuff this way when the game is modified)
|
||||||
{
|
{
|
||||||
UINT8 i = 0;
|
matchesplayed++;
|
||||||
|
if (M_UpdateUnlockablesAndExtraEmblems(true))
|
||||||
if (netgame)
|
|
||||||
{
|
{
|
||||||
// check to see if there's anyone else at all
|
S_StartSound(NULL, sfx_ncitem);
|
||||||
for (; i < MAXPLAYERS; i++)
|
G_SaveGameData(true); // only save if unlocked something
|
||||||
{
|
|
||||||
if (i == consoleplayer)
|
|
||||||
continue;
|
|
||||||
if (playeringame[i] && !stplyr->spectator)
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (i != MAXPLAYERS) // Not FREE PLAY
|
|
||||||
{
|
|
||||||
matchesplayed++;
|
|
||||||
if (M_UpdateUnlockablesAndExtraEmblems(true))
|
|
||||||
{
|
|
||||||
S_StartSound(NULL, sfx_ncitem);
|
|
||||||
G_SaveGameData(true); // only save if unlocked something
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue