summaryrefslogtreecommitdiff
path: root/src/fieldmap.c
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2019-10-02 11:44:50 -0400
committerGitHub <noreply@github.com>2019-10-02 11:44:50 -0400
commit8c86b656d2fa97fc5eb113e9807d49f48c715f8b (patch)
tree01e14b4dec7ef184ca50b9f0815a662590520045 /src/fieldmap.c
parent32693e94d844cb401aed91d066b9f5ad1eb440a7 (diff)
parent1bd678656c735bbeb603ccb80367c7a85f820f61 (diff)
Merge branch 'master' into modern_gcc
Diffstat (limited to 'src/fieldmap.c')
-rw-r--r--src/fieldmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fieldmap.c b/src/fieldmap.c
index f9f857f89..f9b81a173 100644
--- a/src/fieldmap.c
+++ b/src/fieldmap.c
@@ -382,13 +382,13 @@ u8 MapGridIsImpassableAt(int x, int y)
i = (x + 1) & 1;
i += ((y + 1) & 1) * 2;
block = gMapHeader.mapLayout->border[i];
- block |= 0xc00;
+ block |= METATILE_COLLISION_MASK;
}
- if (block == 0x3ff)
+ if (block == METATILE_ID_UNDEFINED)
{
return 1;
}
- return (block & 0xc00) >> 10;
+ return (block & METATILE_COLLISION_MASK) >> 10;
}
u32 MapGridGetMetatileIdAt(int x, int y)