mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Update Warehouse.lua
- added airbase coalition check when spawning aircraft #1413
This commit is contained in:
parent
6e35b80daf
commit
1bb70b8697
@ -7181,7 +7181,7 @@ function WAREHOUSE:_CheckRequestNow(request)
|
||||
-- Check available parking for air asset units.
|
||||
if _assetcategory==Group.Category.AIRPLANE or _assetcategory==Group.Category.HELICOPTER then
|
||||
|
||||
if self.airbase then
|
||||
if self.airbase and self.airbase:GetCoalition()==self:GetCoalition() then
|
||||
|
||||
if self:IsRunwayOperational() then
|
||||
|
||||
@ -7233,7 +7233,7 @@ function WAREHOUSE:_CheckRequestNow(request)
|
||||
-- Check available parking for transport units.
|
||||
if _transportcategory==Group.Category.AIRPLANE or _transportcategory==Group.Category.HELICOPTER then
|
||||
|
||||
if self.airbase then
|
||||
if self.airbase and self.airbase:GetCoalition()==self:GetCoalition() then
|
||||
|
||||
if self:IsRunwayOperational() then
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user