mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 11:44:17 +01:00
Merge pull request #1699 from mrgriffin/field-camera-mod-16
Identify a % 16
This commit is contained in:
commit
8231ea2b68
@ -404,9 +404,9 @@ void CameraUpdate(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
gFieldCamera.x += movementSpeedX;
|
gFieldCamera.x += movementSpeedX;
|
||||||
gFieldCamera.x = gFieldCamera.x - 16 * (gFieldCamera.x / 16);
|
gFieldCamera.x %= 16;
|
||||||
gFieldCamera.y += movementSpeedY;
|
gFieldCamera.y += movementSpeedY;
|
||||||
gFieldCamera.y = gFieldCamera.y - 16 * (gFieldCamera.y / 16);
|
gFieldCamera.y %= 16;
|
||||||
|
|
||||||
if (deltaX != 0 || deltaY != 0)
|
if (deltaX != 0 || deltaY != 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user