Hello people!

Looks like radar has been broken since Revision 1.72 of AIManager.cxx
some 4 months back.
The radar supports a fixed number of aircraft, and the nodes for these
are created at initialization. The aforementioned 1.72 revision
however ignores these, and creates others.
Attached simple patch (in radar.diff) should fix it, by considering
any slot without an id unused.

The number of allocated slots are somewhat limited but creating them
dynamically does not seem to be an easy task. As a workaround I hacked
together a little awk script that generates a configuration xml for
any given number.  (radar.awk and radar.in.xml). A pre-built radar.xml
for 8 AI and 32 MP planes is included. XML is huge, but I have not run
into any problems yet. YMMV.

I also poked around a little more and added target selection and
altitude display. (As I understand it, the altitude was only displayed
for the first slot.) For this I modified 2 textures, radar_frame.rgb
and radar_misc.rgb. In the latter I used some seemingly empty space
for the target boxes.

The target selection could be beefed up with a little nasal, so that
only existing in-range targets are selected.

Grab the tarball here: http://w3.enternet.hu/jester/fgfs/radar-20070325.tgz

Hopefully I didn't break anything.
Let me know what you think.

Greets,
Csaba (alias Jester)

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to