diff options
author | Marcus Huderle <huderlem@gmail.com> | 2018-06-20 17:47:33 -0500 |
---|---|---|
committer | Marcus Huderle <huderlem@gmail.com> | 2018-06-20 17:47:33 -0500 |
commit | c80206e701bc8a290cb2c01afb12cb2e03bf473a (patch) | |
tree | e0c27c40b4d45a7227760c46df2d28de8965468a /src/item_use.c | |
parent | 9d9aef1b42f3ff6923824daf3fe07c562a661ac0 (diff) |
Rename map attribute structs to MapLayout
Diffstat (limited to 'src/item_use.c')
-rw-r--r-- | src/item_use.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/item_use.c b/src/item_use.c index 69fcd51de..e6087d1f9 100644 --- a/src/item_use.c +++ b/src/item_use.c @@ -384,23 +384,23 @@ bool8 sub_80C9688(struct MapConnection *connection, int x, int y) case 2: localOffset = connection->offset + 7; localX = x - localOffset; - localLength = mapHeader->mapData->height - 7; + localLength = mapHeader->mapLayout->height - 7; localY = localLength + y; // additions are reversed for some reason break; case 1: localOffset = connection->offset + 7; localX = x - localOffset; - localLength = gMapHeader.mapData->height + 7; + localLength = gMapHeader.mapLayout->height + 7; localY = y - localLength; break; case 3: - localLength = mapHeader->mapData->width - 7; + localLength = mapHeader->mapLayout->width - 7; localX = localLength + x; // additions are reversed for some reason localOffset = connection->offset + 7; localY = y - localOffset; break; case 4: - localLength = gMapHeader.mapData->width + 7; + localLength = gMapHeader.mapLayout->width + 7; localX = x - localLength; localOffset = connection->offset + 7; localY = y - localOffset; @@ -417,8 +417,8 @@ void sub_80C9720(u8 taskId) { s16 x, y; s16 curX, curY; - s16 width = gMapHeader.mapData->width + 7; - s16 height = gMapHeader.mapData->height + 7; + s16 width = gMapHeader.mapLayout->width + 7; + s16 height = gMapHeader.mapLayout->height + 7; PlayerGetDestCoords(&x, &y); |