diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2022-01-26 17:51:56 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-26 17:51:56 -0500 |
commit | 2efbd5f549bd03cfdaea2c84d48d5fb706034464 (patch) | |
tree | 2454365b3478382c4246dc850f700f661377ed46 /src/trainer_hill.c | |
parent | 4188dd405c07943da9fb6d5c048d5845a94e0669 (diff) | |
parent | 3d0326106ed683911da66eee1bf94becadc7a2db (diff) |
Merge pull request #1608 from GriffinRichards/fix-fieldmap
Fix some incorrect fieldmap names
Diffstat (limited to 'src/trainer_hill.c')
-rw-r--r-- | src/trainer_hill.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/trainer_hill.c b/src/trainer_hill.c index 8d5be0116..39c6202a0 100644 --- a/src/trainer_hill.c +++ b/src/trainer_hill.c @@ -677,9 +677,9 @@ static u16 GetMetatileForFloor(u8 floorId, u32 x, u32 y, u32 stride) // stride i impassable = (sHillData->floors[floorId].display.collisionData[y] >> (15 - x) & 1); metatile = sHillData->floors[floorId].display.metatileData[stride * y + x] + NUM_METATILES_IN_PRIMARY; - elevation = 3 << METATILE_ELEVATION_SHIFT; + elevation = 3 << MAPGRID_ELEVATION_SHIFT; - return ((impassable << METATILE_COLLISION_SHIFT) & METATILE_COLLISION_MASK) | elevation | (metatile & METATILE_ID_MASK); + return ((impassable << MAPGRID_COLLISION_SHIFT) & MAPGRID_COLLISION_MASK) | elevation | (metatile & MAPGRID_METATILE_ID_MASK); } void GenerateTrainerHillFloorLayout(u16 *mapArg) |