Fix sky
This commit is contained in:
parent
4f3c4ebbe7
commit
3991e25de5
1 changed files with 3 additions and 5 deletions
|
@ -481,15 +481,13 @@ inline void pixelFunc(RCL_PixelInfo *pixel)
|
|||
}
|
||||
else
|
||||
{
|
||||
if (previousColumn == pixel->position.x)
|
||||
{
|
||||
color = imageBackground[2 + backgroundColumn * 44 + RCL_clamp(pixel->position.y - player.mCamera.shear,0,43)];
|
||||
}
|
||||
else
|
||||
if (previousColumn != pixel->position.x)
|
||||
{
|
||||
backgroundColumn = RCL_absVal(pixel->position.x + (110 * player.mCamera.direction) / RCL_UNITS_PER_SQUARE) % 110;
|
||||
previousColumn = pixel->position.x;
|
||||
}
|
||||
|
||||
color = imageBackground[2 + backgroundColumn * 44 + RCL_clamp(pixel->position.y - player.mCamera.shear,0,43)];
|
||||
}
|
||||
|
||||
if (intensity != 0)
|
||||
|
|
Loading…
Reference in a new issue