mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-10 10:51:42 +00:00
Please don't punish offline practice
This commit is contained in:
parent
aaee15b5eb
commit
8768e96afa
1 changed files with 4 additions and 21 deletions
17
src/g_game.c
17
src/g_game.c
|
|
@ -2281,22 +2281,6 @@ static inline void G_PlayerFinishLevel(INT32 player)
|
||||||
if (player == consoleplayer)
|
if (player == consoleplayer)
|
||||||
{
|
{
|
||||||
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;
|
|
||||||
|
|
||||||
if (netgame)
|
|
||||||
{
|
|
||||||
// check to see if there's anyone else at all
|
|
||||||
for (; i < MAXPLAYERS; i++)
|
|
||||||
{
|
|
||||||
if (i == consoleplayer)
|
|
||||||
continue;
|
|
||||||
if (playeringame[i] && !stplyr->spectator)
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (i != MAXPLAYERS) // Not FREE PLAY
|
|
||||||
{
|
{
|
||||||
matchesplayed++;
|
matchesplayed++;
|
||||||
if (M_UpdateUnlockablesAndExtraEmblems(true))
|
if (M_UpdateUnlockablesAndExtraEmblems(true))
|
||||||
|
|
@ -2305,7 +2289,6 @@ static inline void G_PlayerFinishLevel(INT32 player)
|
||||||
G_SaveGameData(true); // only save if unlocked something
|
G_SaveGameData(true); // only save if unlocked something
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
legitimateexit = false;
|
legitimateexit = false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue