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

Improve loop

This commit is contained in:
Miloslav Číž 2018-09-12 15:59:32 +02:00
parent d9c571e13f
commit 9801297121

View file

@ -887,10 +887,10 @@ void _columnFunction(HitResult *hits, uint16_t hitCount, uint16_t x, Ray ray)
p.depth = (i - _fogStartYTop) * _floorDepthStep + ceilCameraDiff;
_pixelFunction(&p);
}
}
if (z1ScreenCeil > y2)
y2 = z1ScreenCeil;
}
// draw floor wall