Warehouse v0.5.5

Added AssetDead event.
Some fixes.
This commit is contained in:
Frank
2018-09-30 00:19:08 +02:00
parent ffee1b119b
commit 7e5495bcd8
5 changed files with 95 additions and 74 deletions

View File

@@ -238,9 +238,7 @@ do -- CARGO_UNIT
if not self.CargoInAir then
-- If NearRadius is given, then use the given NearRadius, otherwise calculate the NearRadius
-- based upon the Carrier bounding radius, which is calculated from the bounding rectangle on the Y axis.
env.info(string.format("FF nearradius = %d (before)", NearRadius))
local NearRadius = CargoCarrier:GetBoundingRadius( NearRadius ) + 5
env.info(string.format("FF nearradius = %d isnear=%s", NearRadius, tostring(self:IsNear( CargoCarrier:GetPointVec2(), NearRadius )) ))
local NearRadius = NearRadius or CargoCarrier:GetBoundingRadius() + 5
if self:IsNear( CargoCarrier:GetPointVec2(), NearRadius ) then
self:Load( CargoCarrier, NearRadius, ... )
else