From 9bfbfcfd6ae62ec6ab47ee3643229336e8043326 Mon Sep 17 00:00:00 2001 From: Frank Date: Thu, 27 Sep 2018 23:44:04 +0200 Subject: [PATCH] stuff --- Moose Development/Moose/Cargo/CargoUnit.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Moose Development/Moose/Cargo/CargoUnit.lua b/Moose Development/Moose/Cargo/CargoUnit.lua index c84250aba..3c9e219a6 100644 --- a/Moose Development/Moose/Cargo/CargoUnit.lua +++ b/Moose Development/Moose/Cargo/CargoUnit.lua @@ -245,7 +245,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 ) + 5 + local NearRadius = CargoCarrier:GetBoundingRadius( NearRadius or self.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, ... )