mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
GTR_CHECKPOINTS when alone: Force a level restart when player has been dead for a second
This commit is contained in:
parent
467b5f831b
commit
f9dfdf2152
1 changed files with 10 additions and 1 deletions
11
src/p_user.c
11
src/p_user.c
|
|
@ -2794,7 +2794,16 @@ static void P_DeathThink(player_t *player)
|
|||
|
||||
if (playerGone == false && player->deadtimer > TICRATE)
|
||||
{
|
||||
player->playerstate = PST_REBORN;
|
||||
if (!netgame && !splitscreen
|
||||
&& player->bot == false
|
||||
&& (gametyperules & GTR_CHECKPOINTS))
|
||||
{
|
||||
G_SetRetryFlag();
|
||||
}
|
||||
else
|
||||
{
|
||||
player->playerstate = PST_REBORN;
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: support splitscreen
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue