1
0
Fork 0

fix duplicate point test, and casts for fmod() - should fix windows build

This commit is contained in:
Peter Sadrozinski 2012-03-31 11:00:05 -04:00
parent 512693f001
commit c1c9923892
2 changed files with 2 additions and 2 deletions

View file

@ -421,7 +421,7 @@ inline bool Point3D::IsEqual2D(const Point3D& a) const
inline bool Point3D::HasElevation() const
{
return fabs( n[PZ] + 9999.0 > fgPoint3_Epsilon );
return ( fabs( n[PZ] + 9999.0 ) > fgPoint3_Epsilon );
}

View file

@ -503,7 +503,7 @@ makePolygonsTP (const Line &line, double width, poly_list& polys, texparams_list
tp.set_minv(last_end_v);
tps.push_back(tp);
last_end_v = 1.0f - (fmod( (dist - last_end_v), 1.0f ));
last_end_v = 1.0f - (fmod( (double)(dist - last_end_v), (double)1.0f ));
}
prev_outer = cur_outer;