make collision polygons a tiny bit wider to protect against gaps (from ynjh_jo)

This commit is contained in:
David Rose 2008-08-24 16:24:04 +00:00
parent bf7eac8263
commit 788609a4e0

View File

@ -143,7 +143,7 @@ flush_level() {
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
INLINE bool CollisionPolygon:: INLINE bool CollisionPolygon::
is_right(const LVector2f &v1, const LVector2f &v2) { is_right(const LVector2f &v1, const LVector2f &v2) {
return (v1[0] * v2[1] - v1[1] * v2[0]) > 0; return (v1[0] * v2[1] - v1[1] * v2[0]) > 1.0e-6f;
} }
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////