mirror of
https://git.coom.tech/drummyfish/raycastlib.git
synced 2024-11-21 20:29:59 +01:00
Revert corners
This commit is contained in:
parent
32dcb072b1
commit
519de2a17b
1 changed files with 2 additions and 5 deletions
|
@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue