From 267c7ecf9a9730cdbf6bc813ea44ee8bdfc518bf Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Tue, 16 Mar 2021 19:17:43 +0100 Subject: [PATCH] pia / ladd from DB --- html/planeObject.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/html/planeObject.js b/html/planeObject.js index d6ce347..4f3b809 100644 --- a/html/planeObject.js +++ b/html/planeObject.js @@ -2053,6 +2053,8 @@ PlaneObject.prototype.getAircraftData = function() { if (data[2]) { this.military = (data[2][0] == '1'); this.interesting = (data[2][1] == '1'); + this.pia = (data[2][2] == '1'); + this.ladd = (data[2][3] == '1'); } this.dataChanged(); @@ -2600,6 +2602,8 @@ PlaneObject.prototype.checkForDB = function(t) { if (t.dbFlags) { this.military = t.dbFlags & 1; this.interesting = t.dbFlags & 2; + this.pia = t.dbFlags & 4; + this.ladd = t.dbFlags & 8; } this.regLoaded = true; this.dataChanged();