Merge pull request #1699 from mrgriffin/field-camera-mod-16

Identify a % 16
This commit is contained in:
GriffinR 2022-07-04 16:31:37 -04:00 committed by GitHub
commit 8231ea2b68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)
{