X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FScenery%2Fhitlist.cxx;h=bb980823b5bb422b8d55b47dec055baa850b2879;hb=9fac7682e3a63266f0d431a6d9a99433d398c0c0;hp=8ed9a0dfcbaddf5ee3b15d8df7bb04e8f9346d2b;hpb=94b78153ebe5e139c63f6bf5a037a451aef406cc;p=flightgear.git diff --git a/src/Scenery/hitlist.cxx b/src/Scenery/hitlist.cxx index 8ed9a0dfc..bb980823b 100644 --- a/src/Scenery/hitlist.cxx +++ b/src/Scenery/hitlist.cxx @@ -12,7 +12,7 @@ #include #include -#include +#include #include #include @@ -53,7 +53,7 @@ static bool sgdPointInTriangle( sgdVec3 point, sgdVec3 tri[3] ) //first, drop the smallest dimension so we only have to work //in 2d. double x1, y1, x2, y2, x3, y3, rx, ry; - if ( fabs(min_dim-dx) <= FG_EPSILON ) { + if ( fabs(min_dim-dx) <= SG_EPSILON ) { // x is the smallest dimension x1 = point[1]; y1 = point[2]; @@ -63,7 +63,7 @@ static bool sgdPointInTriangle( sgdVec3 point, sgdVec3 tri[3] ) y3 = tri[1][2]; rx = tri[2][1]; ry = tri[2][2]; - } else if ( fabs(min_dim-dy) <= FG_EPSILON ) { + } else if ( fabs(min_dim-dy) <= SG_EPSILON ) { // y is the smallest dimension x1 = point[0]; y1 = point[2]; @@ -73,7 +73,7 @@ static bool sgdPointInTriangle( sgdVec3 point, sgdVec3 tri[3] ) y3 = tri[1][2]; rx = tri[2][0]; ry = tri[2][2]; - } else if ( fabs(min_dim-dz) <= FG_EPSILON ) { + } else if ( fabs(min_dim-dz) <= SG_EPSILON ) { // z is the smallest dimension x1 = point[0]; y1 = point[1];