Correct opendoor check to include anyone loaded

This commit is contained in:
Applevangelist
2021-07-24 15:53:20 +02:00
parent 5439e60078
commit 4db0ea616d
2 changed files with 12 additions and 2 deletions

View File

@@ -886,6 +886,12 @@ function CSAR:_EventHandler(EventData)
self:T(self.lid .. " Landing Place Nil")
return -- error!
end
-- anyone on board?
if self.inTransitGroups[_event.IniUnitName] == nil then
-- ignore
return
end
if _place:GetCoalition() == self.coalition or _place:GetCoalition() == coalition.side.NEUTRAL then
if self.pilotmustopendoors and not self:_IsLoadingDoorOpen(_event.IniUnitName) then