1
0
Fork 0
mirror of https://git.coom.tech/drummyfish/raycastlib.git synced 2024-12-23 01:26:19 +01:00

Fix collisions

This commit is contained in:
Miloslav Číž 2018-09-08 10:20:11 +02:00
parent a12da2290a
commit 32dcb072b1

View file

@ -1040,7 +1040,7 @@ void moveCameraWithCollision(Camera *camera, Vector2D planeOffset,
if (!dir##Collides)\
{ /* now also check for coll on the neighbouring square */ \
int16_t dir2##Square2 = divRoundDown(corner.dir2 - dir2##Dir *\
CAMERA_COLL_RADIUS,UNITS_PER_SQUARE);\
CAMERA_COLL_RADIUS * 2,UNITS_PER_SQUARE);\
if (dir2##Square2 != dir2##Square)\
{\
if (x)\