Warehouse 0.5.4

This commit is contained in:
Frank
2018-09-27 23:56:02 +02:00
parent 2af52b294c
commit 9637d0e545
2 changed files with 3 additions and 3 deletions

View File

@@ -239,7 +239,7 @@ do -- CARGO_UNIT
-- 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 or self.NearRadius) + 5
local NearRadius = CargoCarrier:GetBoundingRadius( NearRadius ) + 5
env.info(string.format("FF nearradius = %d isnear=%s", NearRadius, tostring(self:IsNear( CargoCarrier:GetPointVec2(), NearRadius )) ))
if self:IsNear( CargoCarrier:GetPointVec2(), NearRadius ) then
self:Load( CargoCarrier, NearRadius, ... )