[Doors] Ignore Doors that Have Non-Zero Trigger or Door Param (#1899)

This commit is contained in:
Chris Miles 2021-12-23 14:47:24 -06:00 committed by GitHub
parent 5457f30659
commit 6a7782ab8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1000,6 +1000,14 @@ void Mob::AI_Process() {
continue;
}
if (door->GetTriggerDoorID() > 0) {
continue;
}
if (door->GetDoorParam() > 0) {
continue;
}
float distance = DistanceSquared(m_Position, door->GetPosition());
float distance_scan_door_open = 20;