From 32dcb072b12c9b0cad5e3c306e46cb5bf2689ac0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20=C4=8C=C3=AD=C5=BE?= Date: Sat, 8 Sep 2018 10:20:11 +0200 Subject: [PATCH] Fix collisions --- raycastlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raycastlib.h b/raycastlib.h index 8a76711..b1f6993 100644 --- a/raycastlib.h +++ b/raycastlib.h @@ -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)\