summaryrefslogtreecommitdiff
path: root/src/dungeon_util.c
diff options
context:
space:
mode:
authorCheng Hann Gan <chenghanngan.us@gmail.com>2021-12-12 15:52:06 -0500
committerGitHub <noreply@github.com>2021-12-12 12:52:06 -0800
commitc53bdc35f8bdd401e90dfae263a3f5fc9182f86b (patch)
tree6111353227b153e4aa56422d91e4e79288ce7376 /src/dungeon_util.c
parenta34c9ab91b553fcb1f72b94eb912b94bea58885b (diff)
Dungeon random/AI decomp + converted positions to structs (#83)
* Decomped RollPercentChance() * Decomped DungeonRandomCapped() * Decomped DungeonRandom() * Decomped FindRockItemTargets() -Added position struct.
Diffstat (limited to 'src/dungeon_util.c')
-rw-r--r--src/dungeon_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dungeon_util.c b/src/dungeon_util.c
index 5943d4b..50b3e08 100644
--- a/src/dungeon_util.c
+++ b/src/dungeon_util.c
@@ -45,10 +45,10 @@ struct DungeonEntityData *sub_8045110(struct DungeonEntity *entity)
struct MapTile *sub_8045114(struct DungeonEntity *entity)
{
- return GetMapTileAtPosition(entity->posWorldX, entity->posWorldY);
+ return GetMapTileAtPosition(entity->posWorld.x, entity->posWorld.y);
}
struct MapTile *sub_8045128(struct DungeonEntity *entity)
{
- return GetMapEntity(entity->posWorldX, entity->posWorldY);
+ return GetMapEntity(entity->posWorld.x, entity->posWorld.y);
}