From 932f31158a620603b85fbd0547ff3e3b6ec8606c Mon Sep 17 00:00:00 2001 From: devZoGok Date: Mon, 2 Feb 2026 20:08:39 +0200 Subject: [PATCH] setting path as truncated --- vehicle.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vehicle.cpp b/vehicle.cpp index 8c58fb4..9017dc9 100644 --- a/vehicle.cpp +++ b/vehicle.cpp @@ -400,6 +400,8 @@ namespace battleship{ else if(leftAngle <= a2) dist = (.5 * width) / cos(leftAngle); addPathpoint(targPos + pointDir.norm() * dist); + pathTruncated = true; + break; } else removePathpoint(pathPoints.size() - 1);