From c3e3e9f5d75de124e9c108da88d3d3d382a34570 Mon Sep 17 00:00:00 2001
From: curt <curt>
Date: Mon, 29 Jan 2001 15:14:12 +0000
Subject: [PATCH] Reduce spurious output from joystick.cxx Fix a typo in
 JSBSim.cxx (#endif in wrong place)

---
 src/Joystick/joystick.cxx | 5 ++---
 src/Scenery/tilemgr.cxx   | 2 ++
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/Joystick/joystick.cxx b/src/Joystick/joystick.cxx
index 1aa232627..1ce30fa79 100644
--- a/src/Joystick/joystick.cxx
+++ b/src/Joystick/joystick.cxx
@@ -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;
diff --git a/src/Scenery/tilemgr.cxx b/src/Scenery/tilemgr.cxx
index 314e3678b..12dbb3abd 100644
--- a/src/Scenery/tilemgr.cxx
+++ b/src/Scenery/tilemgr.cxx
@@ -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);