Fix bots not properly camping out if the owner has camped out or "gone away" before
This commit is contained in:
parent
b61bb53a1b
commit
e1192925a4
@ -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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user