[Doors] Have NPCs trigger double doors (#2821)

This commit is contained in:
Chris Miles
2023-02-06 17:47:03 -06:00
committed by GitHub
parent 2b224d42ad
commit 0a114fae9a
3 changed files with 21 additions and 1 deletions
+7 -1
View File
@@ -999,7 +999,13 @@ void Mob::AI_Process() {
}
if (door->GetTriggerDoorID() > 0) {
continue;
auto trigger_door = entity_list.GetDoorsByDoorID(door->GetTriggerDoorID());
if (trigger_door) {
if (Strings::RemoveNumbers(door->GetDoorName()) !=
Strings::RemoveNumbers(trigger_door->GetDoorName())) {
continue;
}
}
}
if (door->GetDoorParam() > 0) {