Identify a % 16

This commit is contained in:
Martin Griffin 2022-07-04 21:25:19 +01:00
parent 650f033c2b
commit 4e76ffb4ca

View File

@ -404,9 +404,9 @@ void CameraUpdate(void)
}
gFieldCamera.x += movementSpeedX;
gFieldCamera.x = gFieldCamera.x - 16 * (gFieldCamera.x / 16);
gFieldCamera.x %= 16;
gFieldCamera.y += movementSpeedY;
gFieldCamera.y = gFieldCamera.y - 16 * (gFieldCamera.y / 16);
gFieldCamera.y %= 16;
if (deltaX != 0 || deltaY != 0)
{