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);