fix: Scenic AAA not stopping when target out of range

This commit is contained in:
Davide Passoni 2025-03-20 16:53:23 +01:00
parent 0765459cfd
commit 69e8fed623

View File

@ -398,6 +398,9 @@ void GroundUnit::AIloop()
taskString += "Scenic AAA. No valid target.";
else
taskString += "Scenic AAA. Target outside max range: " + to_string((int)round(distance)) + "m.";
if (getHasTask())
resetTask();
}
}
}