A small edit to prevent the bot from stoping

This commit is contained in:
Julian Rowe 2017-05-04 19:48:13 -05:00
parent 1c037c3403
commit 8d28ffcbe7

View File

@ -447,7 +447,7 @@ void DoWalking() {
//When the player is not visible to the bot, within 5 seconds of it not being visible we stop the bot and wait for the player to collect it
if (!found_entity->IsVisible()) {
if (g_GlobalVars->curtime - 5.0F > crumbWaitVis) {
if (g_GlobalVars->curtime - 5.0F > crumbWaitVis && g_GlobalVars->curtime - 2.5F > crumbWaitPrune) {
//crumbStopped = true;
logging::Info("Crumb Lost!");
}