Finish fixing spawnBot

This commit is contained in:
Federico Cecchetto 2022-03-14 00:00:47 +01:00
parent bb5bc22804
commit 2897c0ba70

View File

@ -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);
}
} }
} }