Fix a typo in JSBSim.cxx (#endif in wrong place)
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;
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);