]> git.mxchange.org Git - flightgear.git/commitdiff
Changed MAX_NODES to FG_MAX_NODES.
authorcurt <curt>
Mon, 3 May 1999 11:41:09 +0000 (11:41 +0000)
committercurt <curt>
Mon, 3 May 1999 11:41:09 +0000 (11:41 +0000)
Include/fg_constants.h
Simulator/Objects/obj.cxx

index cf24ec67af1a45fab42f22a501ad85206302fab9..c925c7843d732e0c0041533af4ede62023b4882f 100644 (file)
 
 
 // Maximum nodes per tile
-#define MAX_NODES 2000
+#define FG_MAX_NODES 2000
 
 
 #endif // _FG_CONSTANTS_H
index 4d976f6ce86adcbd5105a86689591b4d625ac33c..c670fb366997678a70e6b0c37e3bd44ca3dc7d35 100644 (file)
@@ -62,7 +62,7 @@
 FG_USING_STD(string);
 
 
-static double normals[MAX_NODES][3];
+static double normals[FG_MAX_NODES][3];
 
 
 // given three points defining a triangle, calculate the normal
@@ -259,7 +259,7 @@ int fgObjLoad( const string& path, fgTILE *t) {
 
            if ( token == "vn" ) {
                // vertex normal
-               if ( vncount < MAX_NODES ) {
+               if ( vncount < FG_MAX_NODES ) {
                    in >> normals[vncount][0]
                       >> normals[vncount][1]
                       >> normals[vncount][2];
@@ -271,7 +271,7 @@ int fgObjLoad( const string& path, fgTILE *t) {
                }
            } else if ( token == "v" ) {
                // node (vertex)
-               if ( t->ncount < MAX_NODES ) {
+               if ( t->ncount < FG_MAX_NODES ) {
                    in >> t->nodes[t->ncount][0]
                       >> t->nodes[t->ncount][1]
                       >> t->nodes[t->ncount][2];