summaryrefslogtreecommitdiff
path: root/src/code_80869E4.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/code_80869E4.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/code_80869E4.c')
-rw-r--r--src/code_80869E4.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/code_80869E4.c b/src/code_80869E4.c
index 30bae49..148a88e 100644
--- a/src/code_80869E4.c
+++ b/src/code_80869E4.c
@@ -60,8 +60,8 @@ void sub_80862BC(struct DungeonEntity *r0)
void sub_80862DC(struct DungeonEntity *r0)
{
u32 array[2];
- array[0] = r0->posPixelX;
- array[1] = r0->posPixelY + (0xE0 << 6);
+ array[0] = r0->posPixel.x;
+ array[1] = r0->posPixel.y + (0xE0 << 6);
sub_804535C(r0, array);
sub_806CDD4(r0, 0, DIRECTION_NORTH);
@@ -71,8 +71,8 @@ void sub_80862DC(struct DungeonEntity *r0)
void sub_8086310(struct DungeonEntity *r0)
{
u32 array[2];
- array[0] = r0->posPixelX;
- array[1] = r0->posPixelY + (0x90 << 8);
+ array[0] = r0->posPixel.x;
+ array[1] = r0->posPixel.y + (0x90 << 8);
sub_804535C(r0, array);
sub_806CE68(r0, DIRECTION_SOUTH);
@@ -83,8 +83,8 @@ void sub_8086310(struct DungeonEntity *r0)
void sub_8086348(struct DungeonEntity *r0)
{
u32 array[2];
- array[0] = r0->posPixelX + (0xF0 << 7);
- array[1] = r0->posPixelY + 0xffffe000;
+ array[0] = r0->posPixel.x + (0xF0 << 7);
+ array[1] = r0->posPixel.y + 0xffffe000;
sub_804535C(r0, array);
sub_806CDD4(r0, 0, DIRECTION_WEST);
@@ -94,8 +94,8 @@ void sub_8086348(struct DungeonEntity *r0)
void sub_8086384(struct DungeonEntity *r0)
{
u32 array[2];
- array[0] = r0->posPixelX + (0xF0 << 7);
- array[1] = r0->posPixelY;
+ array[0] = r0->posPixel.x + (0xF0 << 7);
+ array[1] = r0->posPixel.y;
sub_804535C(r0, array);
sub_806CDD4(r0, 0, DIRECTION_WEST);