]> git.mxchange.org Git - flightgear.git/commit
David Luff:
authorcurt <curt>
Wed, 5 Mar 2003 18:02:24 +0000 (18:02 +0000)
committercurt <curt>
Wed, 5 Mar 2003 18:02:24 +0000 (18:02 +0000)
commit9b24a371807c29fff6988a8ff6af6ed0cc3e02fc
tree72039eb8f74d05fff159107c479e870d016672e7
parent6ed023c0366338291a55fbb6f7a54ba8735c4e9d
David Luff:

// search for the specified apt id and runway no
bool FGRunways::search( const string& aptid, const string& rwyno, FGRunway*
r )

there was a bug, in that each runway corresponds to *two* runway numbers
(eg 01/19, 10L/28R) but the function was only checking one.  I've modified
it to check the supplied number against both possible numbers for each
runway.

Secondly, I sent in the function:

// Return the runway closest to a given heading
bool FGRunways::search( const string& aptid, const int tgt_hdg,
                        FGRunway* runway )

a year or two ago now when I first did the ATIS.  I'm not sure what I was
doing at the time (copied most of it out of fg_init.cxx) but I don't think
it's ever worked, so here's a brutal modification that does!
src/Airports/runways.cxx