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:
@ -1568,7 +1568,5 @@ spawn_bots(num)
|
||||
{
|
||||
level.bots[i] = addtestclient();
|
||||
}
|
||||
|
||||
wait 0.4; // need wait or bots don't spawn at correct origin
|
||||
}
|
||||
}
|
@ -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;
|
||||
|
Reference in New Issue
Block a user