summaryrefslogtreecommitdiff
path: root/src/fieldmap.c
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2019-09-08 12:43:57 -0400
committerGitHub <noreply@github.com>2019-09-08 12:43:57 -0400
commit1bd678656c735bbeb603ccb80367c7a85f820f61 (patch)
tree750ff58e7b6e6917d7420516d9773acdfd1acea7 /src/fieldmap.c
parent00fef26c523fcebd068483e793e9df95a76e1d4e (diff)
parent39683e0362a63ecbffc289b1e45d3e10106fbc58 (diff)
Merge pull request #743 from garakmon/metatile_labels
Name Metatiles
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)