mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-28 05:11:34 +00:00
Fix bot players using the respawning code meant only for real players to use
This commit is contained in:
parent
140152c2e7
commit
01588ea967
1 changed files with 5 additions and 0 deletions
|
@ -7630,6 +7630,9 @@ static void P_DeathThink(player_t *player)
|
||||||
if (player->deadtimer < INT32_MAX)
|
if (player->deadtimer < INT32_MAX)
|
||||||
player->deadtimer++;
|
player->deadtimer++;
|
||||||
|
|
||||||
|
if (player->bot) // don't allow bots to do any of the below, B_CheckRespawn does all they need for respawning already
|
||||||
|
goto notrealplayer;
|
||||||
|
|
||||||
// continue logic
|
// continue logic
|
||||||
if (!(netgame || multiplayer) && player->lives <= 0)
|
if (!(netgame || multiplayer) && player->lives <= 0)
|
||||||
{
|
{
|
||||||
|
@ -7749,6 +7752,8 @@ static void P_DeathThink(player_t *player)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
notrealplayer:
|
||||||
|
|
||||||
if (!player->mo)
|
if (!player->mo)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue