fix: not airborne units no longer targeted, racetracks not drawn for airborne units

This commit is contained in:
Davide Passoni
2025-03-31 11:06:57 +02:00
parent 1248ffb60b
commit 2d0e10bc0b
3 changed files with 11 additions and 5 deletions

View File

@@ -1970,7 +1970,7 @@ export abstract class Unit extends CustomMarker {
}
#drawRacetrack() {
if (getApp().getMap().getOptions().showRacetracks) {
if (getApp().getMap().getOptions().showRacetracks && this.getAirborne()) {
let groundspeed = this.#speed;
// Determine racetrack length