Author Topic: Possible error in radar.js  (Read 847 times)

gwyn_carwardine

Possible error in radar.js
« on: November 03, 2023, 02:58:03 pm »
Just thought I'd mention that this looks like a cut and paste error in radar.js

        acft_1.onload = function() {
            off_ac_X[1] = (acft_1.width / 2);
            off_ac_Y[1] = (acft_0.height / 2);
            //console.log("off_ac_X[1] X=" + off_ac_X[1] + " Y=" + off_ac_Y[1]);
        }


Think the third line ought be off_ac_Y[1] = (acft_1.height / 2);

Admin

Re: Possible error in radar.js
« Reply #1 on: November 04, 2023, 07:42:16 am »
Thanks for pointing this out
The radar is undergoing a complete re-write at the moment, so this will be deprecated in the next release