1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-10 23:27:57 -05:00

Grief: player spawn point fix

Fix invalid spawn point being chosen if connected very shortly after another player
Removes need for wait in between spawning bots
This commit is contained in:
Jbleezy
2022-01-01 22:21:05 -08:00
parent 73961ae95f
commit e3329445cd
2 changed files with 1 additions and 3 deletions

View File

@ -1568,7 +1568,5 @@ spawn_bots(num)
{
level.bots[i] = addtestclient();
}
wait 0.4; // need wait or bots don't spawn at correct origin
}
}

View File

@ -203,7 +203,7 @@ getfreespawnpoint( spawnpoints, player )
foreach(player in players)
{
if(player != self && player.team == self.team && player.playernum == num)
if(player != self && isDefined(player.team_set) && player.team == self.team && player.playernum == num)
{
valid_num = false;
break;