Skip to content

Commit

Permalink
Don't put all triggers into moving platform group when interior testing!
Browse files Browse the repository at this point in the history
  • Loading branch information
HumanGamer committed Apr 5, 2024
1 parent e07ae2c commit 9c7da21
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion engine/source/interior/interiorInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1639,10 +1639,13 @@ void InteriorInstance::addDoors(bool hide, Vector<U32>& usedTriggerIds)
U32 triggerId = follower->mTriggerIds[k];
if (std::find(usedTriggerIds.begin(), usedTriggerIds.end(), triggerId) != usedTriggerIds.end())
continue;
usedTriggerIds.push_back(triggerId);

InteriorResTrigger* resTrigger = mInteriorRes->getTrigger(triggerId);

if (dStricmp(resTrigger->mDataBlock, "TriggerGotoTarget") != 0)
continue;
usedTriggerIds.push_back(triggerId);

Trigger* trigger = new Trigger();
trigger->setField("dataBlock", resTrigger->mDataBlock);

Expand Down

0 comments on commit 9c7da21

Please sign in to comment.