From 3dd63dd5c068f6a38c2175bf2b7d3d2c8cf9b39b Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Sun, 13 Feb 2022 23:41:28 +0100 Subject: [PATCH] fix rotation for aircraft icons on ground when replaying --- html/planeObject.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/html/planeObject.js b/html/planeObject.js index fcc0b01..007ce22 100644 --- a/html/planeObject.js +++ b/html/planeObject.js @@ -1534,7 +1534,9 @@ PlaneObject.prototype.updateData = function(now, last, data, init) { } this.request_rotation_from_track = false; - if (this.altitude == "ground") { + if (replay) { + this.request_rotation_from_track = true; + } else if (this.altitude == "ground") { if (this.true_heading != null) this.rotation = this.true_heading; else if (this.mag_heading != null)