From c53bdc35f8bdd401e90dfae263a3f5fc9182f86b Mon Sep 17 00:00:00 2001 From: Cheng Hann Gan Date: Sun, 12 Dec 2021 15:52:06 -0500 Subject: Dungeon random/AI decomp + converted positions to structs (#83) * Decomped RollPercentChance() * Decomped DungeonRandomCapped() * Decomped DungeonRandom() * Decomped FindRockItemTargets() -Added position struct. --- src/dungeon_util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/dungeon_util.c') 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); } -- cgit v1.2.3