]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/AILocalTraffic.hxx
This innocuous looking typo was crashing the sim whenever an AI plane was asked to...
[flightgear.git] / src / ATC / AILocalTraffic.hxx
index ac7eea0b4598466a9eb459c38e5e200c1b5c5690..8b6a5920eacdfb4febda1d0358125d68522efc23 100644 (file)
 //
 // You should have received a copy of the GNU General Public License
 // along with this program; if not, write to the Free Software
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
 #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>
 
@@ -64,7 +62,7 @@ public:
        ~FGAILocalTraffic();
        
        // Initialise
-       bool Init(const string& callsign, string ICAO, OperatingState initialState = PARKED, PatternLeg initialLeg = DOWNWIND);
+       bool Init(const string& callsign, const string& ICAO, OperatingState initialState = PARKED, PatternLeg initialLeg = DOWNWIND);
        
        // Run the internal calculations
        void Update(double dt);
@@ -121,9 +119,9 @@ protected:
        FGATCAlignedProjection ortho;   // Orthogonal mapping of the local area with the threshold at the origin
        // and the runway aligned with the y axis.
        
-       void GetAirportDetails(string id);
+       void GetAirportDetails(const string& id);
        
-       void GetRwyDetails(string id);
+       void GetRwyDetails(const string& id);
        
        double responseCounter;         // timer in seconds to allow response to requests to be a little while after them
        // Will almost certainly get moved to FGAIPlane.        
@@ -215,7 +213,7 @@ private:
 
        void CalculateSoD(double base_leg_pos, double downwind_leg_pos, bool pattern_direction);
 
-       void ExitRunway(Point3D orthopos);
+       void ExitRunway(const Point3D& orthopos);
 
        void StartTaxi();