]> git.mxchange.org Git - flightgear.git/commitdiff
Fix a gxx 3.3 compiler problem.
authorehofman <ehofman>
Fri, 28 May 2004 19:03:55 +0000 (19:03 +0000)
committerehofman <ehofman>
Fri, 28 May 2004 19:03:55 +0000 (19:03 +0000)
src/AIModel/AIBase.cxx
src/AIModel/AIBase.hxx

index 182c3e11459b5918ea14889c5864ad1f3d2e103a..d1f0ca336e0eca60288e82a763a4a8242e5e73a6 100644 (file)
@@ -118,21 +118,21 @@ void FGAIBase::bind() {
    props->tie("velocities/true-airspeed-kt",  SGRawValuePointer<double>(&speed));
    props->tie("velocities/vertical-speed-fps",
                SGRawValueMethods<FGAIBase,double>(*this,
-                                         FGAIBase::_getVS_fps,
-                                         FGAIBase::_setVS_fps));
+                                         &FGAIBase::_getVS_fps,
+                                         &FGAIBase::_setVS_fps));
 
    props->tie("position/altitude-ft",
                SGRawValueMethods<FGAIBase,double>(*this,
-                                         FGAIBase::_getAltitude,
-                                         FGAIBase::_setAltitude));
+                                         &FGAIBase::_getAltitude,
+                                         &FGAIBase::_setAltitude));
    props->tie("position/latitude-deg",
                SGRawValueMethods<FGAIBase,double>(*this,
-                                         FGAIBase::_getLatitude,
-                                         FGAIBase::_setLatitude));
+                                         &FGAIBase::_getLatitude,
+                                         &FGAIBase::_setLatitude));
    props->tie("position/longitude-deg",
                SGRawValueMethods<FGAIBase,double>(*this,
-                                         FGAIBase::_getLongitude,
-                                         FGAIBase::_setLongitude));
+                                         &FGAIBase::_getLongitude,
+                                         &FGAIBase::_setLongitude));
 
    props->tie("orientation/pitch-deg",   SGRawValuePointer<double>(&pitch));
    props->tie("orientation/roll-deg",    SGRawValuePointer<double>(&roll));
@@ -148,7 +148,7 @@ void FGAIBase::bind() {
    props->tie("radar/rotation", SGRawValuePointer<double>(&rotation));
 
    props->tie("controls/lighting/nav-lights",
-               SGRawValueMethods<FGAIBase,bool>(*this, _isNight));
+               SGRawValueFunctions<bool>(_isNight));
    props->setBoolValue("controls/lighting/beacon", true);
    props->setBoolValue("controls/lighting/strobe", true);
 }
@@ -212,7 +212,7 @@ void FGAIBase::_setAltitude( double _alt ) {
     setAltitude( _alt );
 }
 
-bool FGAIBase::_isNight() const {
+bool FGAIBase::_isNight() {
     return (fgGetFloat("/sim/time/sun-angle-rad") > 1.57);
 }
 
index d418d9237b083fa2a81cdc0b7afe281b9f764512..990760433eda4145165182f67947c20a40f70ca5 100644 (file)
@@ -138,7 +138,7 @@ public:
 
     inline double _getRange() { return range; };
 
-    bool _isNight() const;
+    static bool _isNight();
 };