summaryrefslogtreecommitdiff
path: root/src/dungeon_movement.c
diff options
context:
space:
mode:
authorAnonymousRandomPerson <chenghanngan.us@gmail.com>2021-12-18 00:22:03 -0500
committerAnonymousRandomPerson <chenghanngan.us@gmail.com>2021-12-18 00:22:03 -0500
commit0369264407563b64d60c885f8bf79322b6f663c8 (patch)
treebb1bf94d56b770eca66780948ff9e05401967ed1 /src/dungeon_movement.c
parentc033aea36e73365c28da1de93af29ec11b3945b2 (diff)
Decomped GetMapTileAtPosition()
Diffstat (limited to 'src/dungeon_movement.c')
-rw-r--r--src/dungeon_movement.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dungeon_movement.c b/src/dungeon_movement.c
index 275de05..1601cff 100644
--- a/src/dungeon_movement.c
+++ b/src/dungeon_movement.c
@@ -49,7 +49,7 @@ u32 sub_8075818(struct DungeonEntity *entity)
entityData = entity->entityData;
if(EntityExists(entity))
{
- tile = sub_8045128(entity);
+ tile = GetMapEntityForDungeonEntity(entity);
if(HasIQSkill(entity, IQ_SKILL_SUPER_MOBILE))
if(!(tile->tileType & (TILE_TYPE_FLOOR | TILE_TYPE_UNK_1)))
return 1;
@@ -136,7 +136,7 @@ void sub_8075900(struct DungeonEntity *pokemon, u8 r1)
{
if(!gDungeonGlobalData->monsterHouseActive)
{
- if((sub_8045128(pokemon)->tileType & TILE_TYPE_MONSTER_HOUSE))
+ if((GetMapEntityForDungeonEntity(pokemon)->tileType & TILE_TYPE_MONSTER_HOUSE))
{
// It's a monster house!
SendMessage(GetLeaderEntity(), gPtrItsaMonsterHouseMessage);