Skip to content

Commit a2afad8

Browse files
committed
fixed mismatched units
1 parent 6e1c3a5 commit a2afad8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Data/Base.rte/AI/NativeHumanAI.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ function NativeHumanAI:Update(Owner)
557557
if self.PickupHD then
558558
if not MovableMan:IsDevice(self.PickupHD) or self.PickupHD.ID ~= self.PickupHD.RootID then
559559
self.PickupHD = nil; -- the HeldDevice has been destroyed or picked up
560-
elseif SceneMan:ShortestDistance(Owner.Pos, self.PickupHD.Pos, false):MagnitudeIsLessThan(Owner.Height) then
560+
elseif SceneMan:ShortestDistance(Owner.Pos, self.PickupHD.Pos, false):MagnitudeIsLessThan(Owner.Height * GetMPP()) then
561561
self.Ctrl:SetState(Controller.WEAPON_PICKUP, true);
562562
end
563563
end

0 commit comments

Comments
 (0)