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

This commit is contained in:
Chris Miles authored and GitHub committed 2023-02-06 17:47:03 -06:00
1 parent 2b224d42ad
commit 0a114fae9a
3 files changed
+21 -1

No files matched your search

+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) {