From b7ec09885902c826df12289dbb5f59f9ef170a2f Mon Sep 17 00:00:00 2001
From: Christian Schmitt <chris@ilovelinux.de>
Date: Thu, 12 Apr 2012 12:43:35 +0200
Subject: [PATCH] -Fix taxisign heading calculation leading to wrong values in
 certain cases -Unify space between yellow lights

---
 src/Airports/GenAirports850/linearfeature.cxx  | 4 ++--
 src/Airports/GenAirports850/linked_objects.cxx | 3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/Airports/GenAirports850/linearfeature.cxx b/src/Airports/GenAirports850/linearfeature.cxx
index 054660db..174a0cd6 100644
--- a/src/Airports/GenAirports850/linearfeature.cxx
+++ b/src/Airports/GenAirports850/linearfeature.cxx
@@ -775,12 +775,12 @@ int LinearFeature::Finish( bool closed, unsigned int idx )
 
             case LF_UNIDIR_CLOSE_AMBER:
                 material = "RWY_YELLOW_LIGHTS";
-                light_delta = 4.0f;
+                light_delta = 2.0f;
                 break;
 
             case LF_UNIDIR_CLOSE_AMBER_PULSE:
                 material = "RWY_YELLOW_PULSE_LIGHTS";
-                light_delta = 1.0f;
+                light_delta = 2.0f;
                 break;
 
             case LF_BIDIR_GREEN_AMBER:
diff --git a/src/Airports/GenAirports850/linked_objects.cxx b/src/Airports/GenAirports850/linked_objects.cxx
index 121c2315..6aa25073 100644
--- a/src/Airports/GenAirports850/linked_objects.cxx
+++ b/src/Airports/GenAirports850/linked_objects.cxx
@@ -25,7 +25,8 @@ 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 + 360.0;
+    heading = def_heading - 180.0;
+    if ( heading < 0 ) { heading += 360.0; }
 
     SG_LOG(SG_GENERAL, SG_DEBUG, "Read Sign: (" << lon << "," << lat << ") heading " << def_heading << " size " << size << " definition: " << sgdef << " calc view heading: " << heading );