summaryrefslogtreecommitdiff
path: root/src/dungeon_map_access.c
diff options
context:
space:
mode:
authorSeth Barberee <seth.barberee@gmail.com>2021-12-19 16:38:51 -0600
committerGitHub <noreply@github.com>2021-12-19 16:38:51 -0600
commit8e1c66d8bd01807285b05d8333f36cd2d70e062c (patch)
treebb1bf94d56b770eca66780948ff9e05401967ed1 /src/dungeon_map_access.c
parent087405b9d975b447ef7b17afd1e73e449cc7881b (diff)
parent0369264407563b64d60c885f8bf79322b6f663c8 (diff)
Merge pull request #85 from AnonymousRandomPerson/master
More AI decomp
Diffstat (limited to 'src/dungeon_map_access.c')
-rw-r--r--src/dungeon_map_access.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/dungeon_map_access.c b/src/dungeon_map_access.c
new file mode 100644
index 0000000..43e0e4d
--- /dev/null
+++ b/src/dungeon_map_access.c
@@ -0,0 +1,15 @@
+#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;
+}