1
0
Fork 0

Reduce spurious output from joystick.cxx

Fix a typo in JSBSim.cxx (#endif in wrong place)
This commit is contained in:
curt 2001-01-29 15:14:12 +00:00
parent 97f526f7a6
commit c3e3e9f5d7
2 changed files with 4 additions and 3 deletions

View file

@ -438,9 +438,8 @@ fgJoystickRead()
flag = b.value->setDoubleValue(b.step);
break;
case button::ADJUST:
if (!b.value->setDoubleValue(b.value->getDoubleValue() + b.step))
FG_LOG(FG_INPUT, FG_ALERT, "Failed to set value for joystick "
<< i << ", axis " << j);
flag = b.value->setDoubleValue(b.value->getDoubleValue() +
b.step);
break;
default:
flag = false;

View file

@ -186,6 +186,8 @@ bool FGTileMgr::current_elev_ssg( sgdVec3 abs_view_pos, double *terrain_elev ) {
scenery.cur_radius = geoc.radius();
sgVec3 tmp;
sgSetVec3(tmp, hit_list.get_normal(this_hit));
// cout << "cur_normal: " << tmp[0] << " " << tmp[1] << " "
// << tmp[2] << endl;
ssgState *IntersectedLeafState =
((ssgLeaf*)hit_list.get_entity(this_hit))->getState();
CurrentNormalInLocalPlane(tmp, tmp);