This commit is contained in:
Miloslav Číž 2018-09-22 15:52:43 +02:00
parent 4f3c4ebbe7
commit 3991e25de5

View file

@ -481,15 +481,13 @@ inline void pixelFunc(RCL_PixelInfo *pixel)
} }
else else
{ {
if (previousColumn == pixel->position.x) if (previousColumn != pixel->position.x)
{
color = imageBackground[2 + backgroundColumn * 44 + RCL_clamp(pixel->position.y - player.mCamera.shear,0,43)];
}
else
{ {
backgroundColumn = RCL_absVal(pixel->position.x + (110 * player.mCamera.direction) / RCL_UNITS_PER_SQUARE) % 110; backgroundColumn = RCL_absVal(pixel->position.x + (110 * player.mCamera.direction) / RCL_UNITS_PER_SQUARE) % 110;
previousColumn = pixel->position.x; previousColumn = pixel->position.x;
} }
color = imageBackground[2 + backgroundColumn * 44 + RCL_clamp(pixel->position.y - player.mCamera.shear,0,43)];
} }
if (intensity != 0) if (intensity != 0)