mirror of
https://github.com/pret/pmd-red.git
synced 2026-08-19 07:17:21 -05:00
16 lines
363 B
C
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;
|
|
}
|