mirror of
https://git.coom.tech/drummyfish/raycastlib.git
synced 2024-11-23 20:49:57 +01:00
Fix floor really
This commit is contained in:
parent
d66750be79
commit
22e830b942
1 changed files with 1 additions and 1 deletions
|
@ -1220,7 +1220,7 @@ Unit coordStep = 1;
|
||||||
// draw floor
|
// draw floor
|
||||||
|
|
||||||
p.isWall = 0;
|
p.isWall = 0;
|
||||||
p.depth = (_middleRow - y) * _horizontalDepthStep;
|
p.depth = (_camera.resolution.y - y) * _horizontalDepthStep + 1;
|
||||||
|
|
||||||
while (y < _camera.resolution.y)
|
while (y < _camera.resolution.y)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue