Finish fixing spawnBot

This commit is contained in:
Federico Cecchetto 2022-03-14 00:00:47 +01:00
parent 40aab3a2f8
commit fe593450bb

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