1
0
Fork 0

Fix a gxx 3.3 compiler problem.

This commit is contained in:
ehofman 2004-05-28 19:03:55 +00:00
parent a3cde21637
commit 0074269d11
2 changed files with 11 additions and 11 deletions

View file

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

View file

@ -138,7 +138,7 @@ public:
inline double _getRange() { return range; }; inline double _getRange() { return range; };
bool _isNight() const; static bool _isNight();
}; };