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

Fix floor depth

This commit is contained in:
Miloslav Číž 2018-09-17 12:06:14 +02:00
parent 8963c08039
commit d66750be79

View file

@ -1220,7 +1220,7 @@ Unit coordStep = 1;
// draw floor // draw floor
p.isWall = 0; p.isWall = 0;
p.depth = _middleRow * _horizontalDepthStep; p.depth = (_middleRow - y) * _horizontalDepthStep;
while (y < _camera.resolution.y) while (y < _camera.resolution.y)
{ {