P_CheckBumpers: do not end round with 1 player

- Fixes round ending instantly when warping to Battle with
  1 human player and at least 1 other bot loaded
This commit is contained in:
James R 2024-03-07 02:25:33 -08:00
parent 215446f42a
commit e4f5e3c78e

View file

@ -175,7 +175,8 @@ void K_CheckBumpers(void)
{
// If every other player is eliminated, the
// last player standing wins by default.
K_EndBattleRound(kingofthehill != -1 ? &players[kingofthehill] : NULL);
if (numingame > 1)
K_EndBattleRound(kingofthehill != -1 ? &players[kingofthehill] : NULL);
return;
}