Use constants for region map layout

This commit is contained in:
GriffinR
2022-02-22 18:23:01 -05:00
parent a0c127f72c
commit ed70b81ba0
2 changed files with 17 additions and 17 deletions

View File

@@ -957,7 +957,7 @@ static u16 GetMapSecIdAt(u16 x, u16 y)
}
y -= MAPCURSOR_Y_MIN;
x -= MAPCURSOR_X_MIN;
return sRegionMap_MapSectionLayout[x + y * MAP_WIDTH];
return sRegionMap_MapSectionLayout[y][x];
}
static void InitMapBasedOnPlayerLocation(void)