From 0074269d11ba08f8c6cbcf5adf5362ea36463ea1 Mon Sep 17 00:00:00 2001 From: ehofman Date: Fri, 28 May 2004 19:03:55 +0000 Subject: [PATCH] Fix a gxx 3.3 compiler problem. --- src/AIModel/AIBase.cxx | 20 ++++++++++---------- src/AIModel/AIBase.hxx | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/AIModel/AIBase.cxx b/src/AIModel/AIBase.cxx index 182c3e114..d1f0ca336 100644 --- a/src/AIModel/AIBase.cxx +++ b/src/AIModel/AIBase.cxx @@ -118,21 +118,21 @@ void FGAIBase::bind() { props->tie("velocities/true-airspeed-kt", SGRawValuePointer(&speed)); props->tie("velocities/vertical-speed-fps", SGRawValueMethods(*this, - FGAIBase::_getVS_fps, - FGAIBase::_setVS_fps)); + &FGAIBase::_getVS_fps, + &FGAIBase::_setVS_fps)); props->tie("position/altitude-ft", SGRawValueMethods(*this, - FGAIBase::_getAltitude, - FGAIBase::_setAltitude)); + &FGAIBase::_getAltitude, + &FGAIBase::_setAltitude)); props->tie("position/latitude-deg", SGRawValueMethods(*this, - FGAIBase::_getLatitude, - FGAIBase::_setLatitude)); + &FGAIBase::_getLatitude, + &FGAIBase::_setLatitude)); props->tie("position/longitude-deg", SGRawValueMethods(*this, - FGAIBase::_getLongitude, - FGAIBase::_setLongitude)); + &FGAIBase::_getLongitude, + &FGAIBase::_setLongitude)); props->tie("orientation/pitch-deg", SGRawValuePointer(&pitch)); props->tie("orientation/roll-deg", SGRawValuePointer(&roll)); @@ -148,7 +148,7 @@ void FGAIBase::bind() { props->tie("radar/rotation", SGRawValuePointer(&rotation)); props->tie("controls/lighting/nav-lights", - SGRawValueMethods(*this, _isNight)); + SGRawValueFunctions(_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); } diff --git a/src/AIModel/AIBase.hxx b/src/AIModel/AIBase.hxx index d418d9237..990760433 100644 --- a/src/AIModel/AIBase.hxx +++ b/src/AIModel/AIBase.hxx @@ -138,7 +138,7 @@ public: inline double _getRange() { return range; }; - bool _isNight() const; + static bool _isNight(); };