Files
pmd-red/src/dungeon_map_access.c
2021-12-18 00:22:03 -05:00

16 lines
363 B
C

#include "global.h"
#include "dungeon_map_access.h"
#include "dungeon_global_data.h"
extern struct MapTile *gUnknown_203B430;
struct MapTile* GetMapTileAtPosition(s32 x, s32 y)
{
if (x >= 0 && y >= 0 && x < DUNGEON_MAX_SIZE_X && y < DUNGEON_MAX_SIZE_Y)
{
return gDungeonGlobalData->mapEntityPointers[y][x];
}
return gUnknown_203B430;
}