1
0
Fork 0
mirror of https://git.coom.tech/drummyfish/raycastlib.git synced 2024-11-20 20:19:57 +01:00

Revert corners

This commit is contained in:
Miloslav Číž 2018-09-08 10:53:15 +02:00
parent 32dcb072b1
commit 519de2a17b

View file

@ -1071,11 +1071,8 @@ void moveCameraWithCollision(Camera *camera, Vector2D planeOffset,
if (xyCollides)
{
if (wrap(cornerNew.x,UNITS_PER_SQUARE) >
wrap(cornerNew.y,UNITS_PER_SQUARE))
yCollides = true;
else
xCollides = true;
// normally should slide, but let's KISS
cornerNew = corner;
}
}
}