This commit is contained in:
Frank
2020-07-04 23:16:57 +02:00
parent b13ddc958b
commit 46e73a108f
6 changed files with 71 additions and 31 deletions

View File

@@ -508,7 +508,7 @@ function AIRBASE:GetID(unique)
]]
if AirbaseName==self.AirbaseName then
if airbaseCategory==Airbase.Category.SHIP then
if airbaseCategory==Airbase.Category.SHIP or airbaseCategory==Airbase.Category.HELIPAD then
-- Ships get a negative sign as their unit number might be the same as the ID of another airbase.
return unique and -airbaseID or airbaseID
else