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