make collision polygons a tiny bit wider to protect against gaps (from ynjh_jo)
This commit is contained in:
parent
bf7eac8263
commit
788609a4e0
|
|
@ -143,7 +143,7 @@ flush_level() {
|
|||
////////////////////////////////////////////////////////////////////
|
||||
INLINE bool CollisionPolygon::
|
||||
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;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
|
|
|||
Loading…
Reference in New Issue