]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/AILocalTraffic.hxx
I had hoped that gmtime's lack of thread-safety wouldn't bite us. It does.
[flightgear.git] / src / ATC / AILocalTraffic.hxx
index 690ebd2e7cf4c429f43427e9d5fc9ed4cfdc019e..808739f3a00357ff9019db1bdae0483fd88d0178 100644 (file)
@@ -22,8 +22,6 @@
 #ifndef _FG_AILocalTraffic_HXX
 #define _FG_AILocalTraffic_HXX
 
-#include <plib/sg.h>
-#include <plib/ssg.h>
 #include <simgear/math/point3d.hxx>
 #include <Main/fg_props.hxx>
 
@@ -200,6 +198,7 @@ private:
        bool contactGround;     // we have been told to contact ground
        bool changeFreq;        // true when we need to change frequency
        bool _taxiToGA;         // Temporary mega-hack indicating we are to taxi to the GA parking and disconnect from tower control.
+       bool _removeSelf;       // Indicates that we wish to remove this instance.  The use of a variable is a hack to allow time for messages to purge before removal, due to the fagility of the current dialog system.
        atc_type changeFreqType;        // the service we need to change to
        bool freeTaxi;  // False if the airport has a facilities file with a logical taxi network defined, true if we need to calculate our own taxiing points.
        
@@ -223,6 +222,9 @@ private:
        void GetNextTaxiNode();
        
        void DoGroundElev();
+       
+       // Set when the plane should be invisible *regardless of distance from user*.
+       bool _invisible;
 };
 
 #endif  // _FG_AILocalTraffic_HXX