1
0
Fork 0
mirror of https://git.coom.tech/drummyfish/raycastlib.git synced 2024-11-23 20:49: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 (xyCollides)
{ {
if (wrap(cornerNew.x,UNITS_PER_SQUARE) > // normally should slide, but let's KISS
wrap(cornerNew.y,UNITS_PER_SQUARE)) cornerNew = corner;
yCollides = true;
else
xCollides = true;
} }
} }
} }