From 1b05b6cc80552d37e92fab65c3809ebefb4f3665 Mon Sep 17 00:00:00 2001 From: Peter Vaiko Date: Wed, 29 Dec 2021 06:55:29 -0500 Subject: [PATCH] Reversing typo fix --- scripts/ai/AIReverseDriver.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/ai/AIReverseDriver.lua b/scripts/ai/AIReverseDriver.lua index 7ce64b8b9..3e7b8eb18 100644 --- a/scripts/ai/AIReverseDriver.lua +++ b/scripts/ai/AIReverseDriver.lua @@ -26,6 +26,7 @@ AIReverseDriver = CpObject() ---@param course Course function AIReverseDriver:init(vehicle, ppc) self.vehicle = vehicle + self.settings = vehicle:getCpSettings() ---@type PurePursuitController self.ppc = ppc -- the main implement (towed) or trailer we are controlling @@ -144,7 +145,7 @@ function AIReverseDriver:getDriveData() local gx, _, gz = localToWorld(self.vehicle:getAIDirectionNode(), lx, 0, lz) DebugUtil.drawDebugLine(gx, ty, gz, gx, ty + 3, gz, 1, 0, 0) -- TODO_22 reverse speed - return gx, gz, false, self.vehicle.settings.reverseSpeed:getValue() + return gx, gz, false, self.settings.reverseSpeed:getValue() end function AIReverseDriver:getLocalYRotationToPoint(node, x, y, z, direction)