mirror of
https://git.coom.tech/drummyfish/raycastlib.git
synced 2024-11-24 20:59:58 +01:00
Improve loop
This commit is contained in:
parent
d9c571e13f
commit
9801297121
1 changed files with 3 additions and 3 deletions
|
@ -887,10 +887,10 @@ void _columnFunction(HitResult *hits, uint16_t hitCount, uint16_t x, Ray ray)
|
||||||
p.depth = (i - _fogStartYTop) * _floorDepthStep + ceilCameraDiff;
|
p.depth = (i - _fogStartYTop) * _floorDepthStep + ceilCameraDiff;
|
||||||
_pixelFunction(&p);
|
_pixelFunction(&p);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (z1ScreenCeil > y2)
|
if (z1ScreenCeil > y2)
|
||||||
y2 = z1ScreenCeil;
|
y2 = z1ScreenCeil;
|
||||||
|
}
|
||||||
|
|
||||||
// draw floor wall
|
// draw floor wall
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue