1
0
Fork 0
mirror of https://git.coom.tech/drummyfish/raycastlib.git synced 2024-11-20 20:19:57 +01:00

Fix regression

This commit is contained in:
Miloslav Číž 2018-09-11 17:19:50 +02:00
parent 58a4a81b9c
commit 292f4c4eae

View file

@ -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\