Finish fixing spawnBot
This commit is contained in:
parent
40aab3a2f8
commit
fe593450bb
@ -62,11 +62,13 @@ namespace bots
|
||||
{
|
||||
spawn_bot(bot_ent->s.entityNum);
|
||||
}
|
||||
// can cause a stack overflow
|
||||
// else if (can_add()) // workaround since first bot won't ever spawn
|
||||
// {
|
||||
// add_bot();
|
||||
// }
|
||||
else
|
||||
{
|
||||
scheduler::once([]()
|
||||
{
|
||||
add_bot();
|
||||
}, scheduler::pipeline::server, 100ms);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user