]> git.mxchange.org Git - flightgear.git/commitdiff
Tweaks ...
authorcurt <curt>
Wed, 6 Sep 2000 00:11:01 +0000 (00:11 +0000)
committercurt <curt>
Wed, 6 Sep 2000 00:11:01 +0000 (00:11 +0000)
src/Scenery/hitlist.cxx
src/Scenery/tilemgr.cxx

index 957a4e7a926ef7bbfc49065ac88fc8969714a5bc..db95620a754613b8d918da38cdb85db16a50a0ed 100644 (file)
@@ -6,6 +6,7 @@
 #  include <windows.h>
 #endif
 
+#include <float.h>
 #include <math.h>
 
 #include <GL/glut.h>
index 56bd65f14e025a58693355922d979c353336eedc..77f6c745ef284a7823b95f0cfe3d3ff444b22995 100644 (file)
@@ -192,6 +192,8 @@ FGTileMgr::current_elev_ssg( const Point3D& abs_view_pos,
        scenery.cur_radius = geoc.radius();
        sgVec3 tmp;
        sgSetVec3(tmp, hit_list.get_normal(this_hit));
+       ssgState *IntersectedLeafState =
+           ((ssgLeaf*)hit_list.get_entity(this_hit))->getState();
        current_view.CurrentNormalInLocalPlane(tmp, tmp);
        sgdSetVec3( scenery.cur_normal, tmp );
        // cout << "NED: " << tmp[0] << " " << tmp[1] << " " << tmp[2] << endl;