From 292f4c4eaea6ad7543d287e1a198c51137d258f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20=C4=8C=C3=AD=C5=BE?= Date: Tue, 11 Sep 2018 17:19:50 +0200 Subject: [PATCH] Fix regression --- raycastlib.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/raycastlib.h b/raycastlib.h index c173c52..d0988c3 100644 --- a/raycastlib.h +++ b/raycastlib.h @@ -1202,12 +1202,12 @@ void moveCameraWithCollision(Camera *camera, Vector2D planeOffset, {\ Unit height = floorHeightFunc(s1,s2);\ if (height > bottomLimit)\ - dir##Collides = 0;\ + dir##Collides = 1;\ else if (ceilingHeightFunc != 0)\ {\ height = ceilingHeightFunc(s1,s2);\ if (height < topLimit)\ - dir##Collides = 0;\ + dir##Collides = 1;\ }\ }\ else\