fix rotation for aircraft icons on ground when replaying

This commit is contained in:
Matthias Wirth
2022-02-13 23:41:28 +01:00
parent 78c4c59aeb
commit 3dd63dd5c0

View File

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