1
0

Fix bots not properly camping out if the owner has camped out or "gone away" before

This commit is contained in:
Emagi 2024-11-28 07:46:19 -05:00
parent b61bb53a1b
commit e1192925a4

View File

@ -721,12 +721,12 @@ void Bot::Begin_Camp() {
GetZone()->Despawn(this, 5000);
}
camping = false;
immediate_camp = true;
if (!GetOwner())
return;
if (GetOwner()->IsPlayer())
((Player*)GetOwner())->SpawnedBots.erase(BotIndex);
camping = false;
immediate_camp = true;
}