mirror of
https://git.coom.tech/drummyfish/raycastlib.git
synced 2024-11-21 20:29:59 +01:00
Fix door roll
This commit is contained in:
parent
bca49edeb1
commit
300eceb005
1 changed files with 4 additions and 2 deletions
|
@ -1400,9 +1400,11 @@ void _RCL_columnFunctionSimple(RCL_HitResult *hits, uint16_t hitCount,
|
||||||
{
|
{
|
||||||
// normal hit, check the door roll
|
// normal hit, check the door roll
|
||||||
|
|
||||||
|
RCL_Unit texCoordMod = hit.textureCoord % RCL_UNITS_PER_SQUARE;
|
||||||
|
|
||||||
int8_t unrolled = hit.doorRoll >= 0 ?
|
int8_t unrolled = hit.doorRoll >= 0 ?
|
||||||
hit.doorRoll > hit.textureCoord :
|
hit.doorRoll > texCoordMod :
|
||||||
hit.textureCoord > RCL_UNITS_PER_SQUARE + hit.doorRoll;
|
texCoordMod > RCL_UNITS_PER_SQUARE + hit.doorRoll;
|
||||||
|
|
||||||
if (unrolled)
|
if (unrolled)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue