]> git.mxchange.org Git - flightgear.git/blobdiff - src/Scenery/hitlist.hxx
A long, long time ago, a bug was inadvertently introduced into the threaded
[flightgear.git] / src / Scenery / hitlist.hxx
index e4f8cd4663e51a9f552db70c36171c1f6afff334..e1faaac3ddae629e89fac2b03317788d5771005a 100644 (file)
 #include <simgear/compiler.h>
 
 #include <vector>
+SG_USING_STD(vector);
 
 #include <plib/ssg.h>
 
-SG_USING_STD(vector);
+class ssgEntity;
+class ssgBranch;
 
 class FGHitRec {
 
@@ -53,7 +55,7 @@ public:
 
     FGHitList();
     ~FGHitList();
-       
+
     void init(void) { list.clear(); test_dist=DBL_MAX; }
     void clear(void) { init(); last = NULL; }
     void add( ssgEntity *ent, int idx, sgdVec3 point, sgdVec3 normal ) {
@@ -85,6 +87,7 @@ public:
 // center, find the current terrain intersection elevation for the
 // point specified.
 bool fgCurrentElev( sgdVec3 abs_view_pos,
+                    double max_alt_m,
                     sgdVec3 scenery_center,
                     ssgTransform *terra_transform,
                     FGHitList *hit_list,
@@ -93,6 +96,7 @@ bool fgCurrentElev( sgdVec3 abs_view_pos,
                     double *normal );
 
 bool fgCurrentElev( sgdVec3 abs_view_pos,
+                    double max_alt_m,
                     sgdVec3 scenery_center,
                     FGHitList *hit_list,
                     double *terrain_elev,