From 30d9f369f3b7daaae2a5198072ff0fb84e3ad56a Mon Sep 17 00:00:00 2001 From: FlightControl Date: Mon, 15 May 2017 13:05:19 +0200 Subject: [PATCH] Fixed When the deployzone is nil, the troops are deployed 60 meters in front of the carrier. --- Moose Development/Moose/Tasking/Task_CARGO.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Moose Development/Moose/Tasking/Task_CARGO.lua b/Moose Development/Moose/Tasking/Task_CARGO.lua index 5af0f0b30..5edc328fc 100644 --- a/Moose Development/Moose/Tasking/Task_CARGO.lua +++ b/Moose Development/Moose/Tasking/Task_CARGO.lua @@ -537,7 +537,11 @@ do -- TASK_CARGO if self.Cargo:IsAlive() then self.Cargo:MessageToGroup( "UnBoarding ...", TaskUnit:GetGroup() ) - self.Cargo:UnBoard( DeployZone:GetPointVec2(), 400, self ) + if DeployZone then + self.Cargo:UnBoard( DeployZone:GetPointVec2(), 400, self ) + else + self.Cargo:UnBoard( TaskUnit:GetPointVec2():AddX(60), 400, self ) + end end end