From ba5d208c964e1dc9280653b25f47f7e146bf3f4d Mon Sep 17 00:00:00 2001 From: dpassoni Date: Tue, 7 Mar 2023 15:13:00 +0100 Subject: [PATCH] Fixed velocity vectors --- client/src/units/unit.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/units/unit.ts b/client/src/units/unit.ts index 79b115ab..b96416bd 100644 --- a/client/src/units/unit.ts +++ b/client/src/units/unit.ts @@ -298,7 +298,7 @@ export class Unit extends Marker { this.setLatLng(new LatLng(this.getFlightData().latitude, this.getFlightData().longitude)); var element = this.getElement(); if (element != null) { - element.querySelector(".unit-vvi")?.setAttribute("style", `style="height: ${this.getFlightData().speed / 5}px; transform:rotate(${rad2deg(this.getFlightData().heading)}deg);`); + element.querySelector(".unit-vvi")?.setAttribute("style", `height: ${this.getFlightData().speed / 5}px; transform:rotate(${rad2deg(this.getFlightData().heading)}deg);`); element.querySelector(".unit")?.setAttribute("data-fuel-level", "20"); element.querySelector(".unit")?.setAttribute("data-has-fox-1", "true");