FIFO - FIFO:HasUniqueID(UniqueID)

GROUP - added GROUP:IsPlayer()
INTEL - added clustering by flight deck (10'k ft) for AIR
SET - added option to NOT set the cargo bay weight limit automatically on SET_GROUP:AddGroup( group, DontSetCargoBayLimit )
This commit is contained in:
Applevangelist
2022-05-02 17:18:29 +02:00
parent f725709e5b
commit bc03eb2e65
5 changed files with 165 additions and 34 deletions

View File

@@ -249,7 +249,11 @@ end
-- @return #boolean exists
function FIFO:HasUniqueID(UniqueID)
self:T(self.lid.."HasUniqueID")
return self.stackbyid[UniqueID] and true or false
if self.stackbyid[UniqueID] ~= nil then
return true
else
return false
end
end
--- FIFO Get the data stack by UniqueID