fix duplicate point test, and casts for fmod() - should fix windows build
This commit is contained in:
parent
512693f001
commit
c1c9923892
2 changed files with 2 additions and 2 deletions
|
@ -421,7 +421,7 @@ inline bool Point3D::IsEqual2D(const Point3D& a) const
|
||||||
|
|
||||||
inline bool Point3D::HasElevation() const
|
inline bool Point3D::HasElevation() const
|
||||||
{
|
{
|
||||||
return fabs( n[PZ] + 9999.0 > fgPoint3_Epsilon );
|
return ( fabs( n[PZ] + 9999.0 ) > fgPoint3_Epsilon );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -503,7 +503,7 @@ makePolygonsTP (const Line &line, double width, poly_list& polys, texparams_list
|
||||||
tp.set_minv(last_end_v);
|
tp.set_minv(last_end_v);
|
||||||
tps.push_back(tp);
|
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;
|
prev_outer = cur_outer;
|
||||||
|
|
Loading…
Reference in a new issue