mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-17 23:21:22 +00:00
Accidentially broke game overs. Fixed now.
This commit is contained in:
parent
947e9ed34f
commit
9fbcd6e883
1 changed files with 7 additions and 3 deletions
10
src/p_user.c
10
src/p_user.c
|
@ -8260,7 +8260,7 @@ static void P_DeathThink(player_t *player)
|
|||
player->playerstate = PST_REBORN;
|
||||
}
|
||||
}
|
||||
else if ((netgame || multiplayer) && player->deadtimer == 8*TICRATE)
|
||||
else if ((netgame || multiplayer) && player->deadtimer >= 8*TICRATE)
|
||||
{
|
||||
|
||||
INT32 i, deadtimercheck = INT32_MAX;
|
||||
|
@ -8270,7 +8270,9 @@ static void P_DeathThink(player_t *player)
|
|||
{
|
||||
for (i = 0; i < MAXPLAYERS; i++)
|
||||
{
|
||||
if (playeringame[i] && !players[i].exiting && players[i].lives)
|
||||
if (!playeringame[i])
|
||||
continue;
|
||||
if (!players[i].exiting && players[i].lives)
|
||||
break;
|
||||
if (players[i].deadtimer < deadtimercheck)
|
||||
deadtimercheck = players[i].deadtimer;
|
||||
|
@ -8288,7 +8290,9 @@ static void P_DeathThink(player_t *player)
|
|||
{
|
||||
for (i = 0; i < MAXPLAYERS; i++)
|
||||
{
|
||||
if (playeringame[i] && (players[i].exiting || players[i].lives))
|
||||
if (!playeringame[i])
|
||||
continue;
|
||||
if (players[i].exiting || players[i].lives)
|
||||
break;
|
||||
if (players[i].deadtimer < deadtimercheck)
|
||||
deadtimercheck = players[i].deadtimer;
|
||||
|
|
Loading…
Reference in a new issue