diff options
author | Marcus Huderle <huderlem@gmail.com> | 2018-10-31 18:40:40 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-31 18:40:40 -0500 |
commit | cbc414c44115550c811d6629c23c2e749d9d7fe3 (patch) | |
tree | 42a2274534149cb609636c3ef98a90438a11ca33 /src/fieldmap.c | |
parent | 425cb7ec71d549bed0a73bb864c3f33a1c89f1c4 (diff) | |
parent | bc71641386573c7e865d0cec941f84310fbd648f (diff) |
Merge pull request #698 from Slawter666/synchronise
Synchronise with pokeemerald
Diffstat (limited to 'src/fieldmap.c')
-rw-r--r-- | src/fieldmap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fieldmap.c b/src/fieldmap.c index abb46fd35..4b5149878 100644 --- a/src/fieldmap.c +++ b/src/fieldmap.c @@ -715,7 +715,7 @@ bool8 CameraMove(int x, int y) unsigned int direction; struct MapConnection *connection; int old_x, old_y; - gCamera.field_0 = FALSE; + gCamera.active = FALSE; direction = GetPostCameraMoveMapBorderId(x, y); if (direction + 1 <= 1) { @@ -730,14 +730,14 @@ bool8 CameraMove(int x, int y) connection = sub_8056A64(direction, gSaveBlock1.pos.x, gSaveBlock1.pos.y); sub_8056918(connection, direction, x, y); sub_80538F0(connection->mapGroup, connection->mapNum); - gCamera.field_0 = TRUE; + gCamera.active = TRUE; gCamera.x = old_x - gSaveBlock1.pos.x; gCamera.y = old_y - gSaveBlock1.pos.y; gSaveBlock1.pos.x += x; gSaveBlock1.pos.y += y; sub_80566F0(direction); } - return gCamera.field_0; + return gCamera.active; } struct MapConnection *sub_8056A64(u8 direction, int x, int y) |