nav: pause a little if doing jump sequence

This commit is contained in:
jeefo 2023-05-12 22:41:53 +03:00
commit 57f5c1f323
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
3 changed files with 17 additions and 7 deletions

View file

@ -2773,13 +2773,7 @@ void Bot::executeTasks () {
auto func = getTask ()->func;
// run the current task
if (func != nullptr) {
(this->*func) ();
}
else {
logger.error ("Missing callback function of Task %d.", getCurrentTaskId ());
kick (); // drop the player, as it's fatal for bot
}
(this->*func) ();
}
void Bot::checkSpawnConditions () {