From 5a80fe638b28b4820dfcdb120063c92dcc27bd37 Mon Sep 17 00:00:00 2001 From: Christian Schmitt Date: Thu, 12 Apr 2012 23:21:44 +0200 Subject: [PATCH] Partially revert commit b7ec09885902c826df12289dbb5f59f9ef170a2f The heading calculation was right. I was unaware of stg using counter-clockwise notation :( --- src/Airports/GenAirports850/linked_objects.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Airports/GenAirports850/linked_objects.cxx b/src/Airports/GenAirports850/linked_objects.cxx index 6aa25073..121c2315 100644 --- a/src/Airports/GenAirports850/linked_objects.cxx +++ b/src/Airports/GenAirports850/linked_objects.cxx @@ -25,8 +25,7 @@ Sign::Sign( char* definition ) // 850 format sign heading is the heading which points away from the visible numbers // Flightgear wants the heading to be the heading in which the sign is read - heading = def_heading - 180.0; - if ( heading < 0 ) { heading += 360.0; } + heading = -def_heading + 360.0; SG_LOG(SG_GENERAL, SG_DEBUG, "Read Sign: (" << lon << "," << lat << ") heading " << def_heading << " size " << size << " definition: " << sgdef << " calc view heading: " << heading );