]> git.mxchange.org Git - flightgear.git/blobdiff - Scenery/tile.cxx
Attempting to iron out seg faults and crashes.
[flightgear.git] / Scenery / tile.cxx
index 0af9089b5e8b2a96f5811dc33db7c7d5dc60222d..5f0a97c1c3ebc3ad1f1d77312313f6303d4d5059 100644 (file)
@@ -157,8 +157,8 @@ static double fg_max3 (double a, double b, double c)
 // test if line intesects with this fragment.  p0 and p1 are the two
 // line end points of the line.  If side_flag is true, check to see
 // that end points are on opposite sides of face.  Returns 1 if it
-// does, 0 otherwise.  If it intesects, result is the point of
-// intersection
+// intersection found, 0 otherwise.  If it intesects, result is the
+// point of intersection
 
 int fgFRAGMENT::intersect( fgPoint3d *end0, fgPoint3d *end1, int side_flag,
                           fgPoint3d *result)
@@ -178,7 +178,7 @@ int fgFRAGMENT::intersect( fgPoint3d *end0, fgPoint3d *end1, int side_flag,
     list < fgFACE > :: iterator last;
 
     // find the associated tile
-    t = (fgTILE *)tile_ptr;
+    t = tile_ptr;
 
     // printf("Intersecting\n");
 
@@ -448,6 +448,16 @@ fgTILE::~fgTILE ( void ) {
 
 
 // $Log$
+// Revision 1.8  1998/08/22 14:49:58  curt
+// Attempting to iron out seg faults and crashes.
+// Did some shuffling to fix a initialization order problem between view
+// position, scenery elevation.
+//
+// Revision 1.7  1998/08/20 15:12:05  curt
+// Used a forward declaration of classes fgTILE and fgMATERIAL to eliminate
+// the need for "void" pointers and casts.
+// Quick hack to count the number of scenery polygons that are being drawn.
+//
 // Revision 1.6  1998/08/12 21:13:05  curt
 // material.cxx: don't load textures if they are disabled
 // obj.cxx: optimizations from Norman Vine