diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2021-10-17 11:32:30 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-17 11:32:30 -0400 |
commit | 164590e37d67a385bf6479aafcbe5b351891bc0b (patch) | |
tree | c3d4cac1627512d166440ead47d9f2285c8b4044 /src/field_tasks.c | |
parent | a4a3c1c9e5a0026415330eab9bea2f8f3e83e0a3 (diff) | |
parent | 1f39c34ca47e43b0afccaabe97d1df19e3f0b39b (diff) |
Merge pull request #1512 from GriffinRichards/minor-constants
Add some misc constants/usage
Diffstat (limited to 'src/field_tasks.c')
-rw-r--r-- | src/field_tasks.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/field_tasks.c b/src/field_tasks.c index 676a9cfc7..187270f7a 100644 --- a/src/field_tasks.c +++ b/src/field_tasks.c @@ -529,7 +529,7 @@ void SetSootopolisGymCrackedIceMetatiles(void) for (y = 0; y < height; y++) { if (IsIcePuzzleCoordVisited(x, y) == TRUE) - MapGridSetMetatileIdAt(x + 7, y + 7, METATILE_SootopolisGym_Ice_Cracked); + MapGridSetMetatileIdAt(x + MAP_OFFSET, y + MAP_OFFSET, METATILE_SootopolisGym_Ice_Cracked); } } } @@ -586,7 +586,7 @@ static void SootopolisGymIcePerStepCallback(u8 taskId) PlaySE(SE_ICE_CRACK); MapGridSetMetatileIdAt(x, y, METATILE_SootopolisGym_Ice_Cracked); CurrentMapDrawMetatileAt(x, y); - MarkIcePuzzleCoordVisited(x - 7, y - 7); + MarkIcePuzzleCoordVisited(x - MAP_OFFSET, y - MAP_OFFSET); data[1] = 1; } break; @@ -689,7 +689,7 @@ static void SetMuddySlopeMetatile(s16 *data, s16 x, s16 y) { u16 tile; if ((--data[0]) == 0) - tile = 0xe8; + tile = METATILE_General_MuddySlope_Frame0; else tile = sMuddySlopeMetatiles[data[0] / 8]; |