]> git.mxchange.org Git - flightgear.git/commit
James Turner:
authorehofman <ehofman>
Fri, 12 Sep 2008 08:46:15 +0000 (08:46 +0000)
committerehofman <ehofman>
Fri, 12 Sep 2008 08:46:15 +0000 (08:46 +0000)
commitbb2b03c7e392e107aeaf7dbc4eecc59064b28512
tree416e5c8d95fe58aeeec724f963afa73674d4e00a
parenta18a0593d4932e1a9ec4b7c6975416e6ab2b809a
James Turner:
Convert FGNavRecord to inherit FGPositioned. This is much more self-contained than the FGRunway change, since FGNavRecord already had good encapsulation of its state. However, it's a large diff due to moving around two nasty pieces of code - the 'align navaid with extended runway centerline' logic and the 'penalise transmitters at the opposite runway end' logic.

In general things are more readable because I've replaced the Navaid type enum, and the use of Robin's integer type codes, with   switches on the FGPositioned::Type code - no more trying to recall that '6' is an outer marker in Robin's data. The creation code path is also pushed down from navdb into navrecord itself.
src/Instrumentation/dclgps.cxx
src/Instrumentation/marker_beacon.cxx
src/Main/fg_init.cxx
src/Navaids/navdb.cxx
src/Navaids/navdb.hxx
src/Navaids/navlist.cxx
src/Navaids/navlist.hxx
src/Navaids/navrecord.cxx
src/Navaids/navrecord.hxx