summaryrefslogtreecommitdiff
path: root/src/object
diff options
context:
space:
mode:
authornotyourav <65437533+notyourav@users.noreply.github.com>2022-03-06 22:36:16 -0800
committerGitHub <noreply@github.com>2022-03-06 22:36:16 -0800
commit4e94e1fbc321b8d98da0f55624b46cfcc6a415a0 (patch)
tree2c3d937449c6f4e60cfa492b4e07ce2dc2fb2788 /src/object
parent80f9adac2009bbc774a463e1828884c1fbcf3e6f (diff)
parentabb02729633091d8f02efda99a9cbb8b71674e89 (diff)
Merge pull request #433 from octorock/objectUtils
Decompile rest of objectUtils
Diffstat (limited to 'src/object')
-rw-r--r--src/object/lavaPlatform.c6
-rw-r--r--src/object/lightableSwitch.c4
-rw-r--r--src/object/lilypadSmall.c6
3 files changed, 6 insertions, 10 deletions
diff --git a/src/object/lavaPlatform.c b/src/object/lavaPlatform.c
index 61811673..8576cfa8 100644
--- a/src/object/lavaPlatform.c
+++ b/src/object/lavaPlatform.c
@@ -32,8 +32,6 @@ typedef struct {
/*0x0e*/ u8 unk_e[2];
} LavaPlatformEntry;
-extern void sub_080A2CC0(Entity*, Entity**, u16*);
-
void sub_08092278(LavaPlatformEntity*);
void sub_08092344(LavaPlatformEntity*);
void LavaPlatform_SpawnPlatforms(LavaPlatformEntity*);
@@ -248,7 +246,7 @@ void LavaPlatform_SpawnPlatforms(LavaPlatformEntity* this) {
platform->respawnTime = entry->respawnTime;
platform->unk_78 = entry->unk_78;
UpdateSpriteForCollisionLayer((Entity*)platform);
- sub_080A2CC0(&platform->base, &platform->unk_78, &platform->unk_76);
+ sub_080A2CC0(&platform->base, (u16**)&platform->unk_78, &platform->unk_76);
}
entry++;
}
@@ -302,6 +300,6 @@ void sub_080926E4(LavaPlatformEntity* this) {
(super->parent)->y.HALF.HI = super->y.HALF.HI;
}
if (--this->unk_76 == 0) {
- sub_080A2CC0(super, &this->unk_78, &this->unk_76);
+ sub_080A2CC0(super, (u16**)&this->unk_78, &this->unk_76);
}
}
diff --git a/src/object/lightableSwitch.c b/src/object/lightableSwitch.c
index ca63ad85..ec5fdad5 100644
--- a/src/object/lightableSwitch.c
+++ b/src/object/lightableSwitch.c
@@ -65,7 +65,7 @@ void sub_0809EAD8(Entity* this) {
if (this->type2 != 0) {
this->child = GetCurrentRoomProperty(this->type2);
- sub_080A2CC0(this, &this->child, &this->field_0x74.HWORD);
+ sub_080A2CC0(this, (u16**)&this->child, &this->field_0x74.HWORD);
} else {
SetTile(0x4050, COORD_TO_TILE(this), this->collisionLayer);
@@ -82,7 +82,7 @@ void sub_0809EB30(Entity* this) {
}
puVar2 = &this->field_0x74.HWORD;
if (!--*puVar2) {
- sub_080A2CC0(this, &this->child, puVar2);
+ sub_080A2CC0(this, (u16**)&this->child, puVar2);
}
}
}
diff --git a/src/object/lilypadSmall.c b/src/object/lilypadSmall.c
index 5ec5fb84..c8cf76f1 100644
--- a/src/object/lilypadSmall.c
+++ b/src/object/lilypadSmall.c
@@ -1,8 +1,6 @@
#include "object.h"
#include "functions.h"
-extern void sub_080A2CC0(Entity*, Entity**, u16*);
-
extern u16 gUnk_08123318[];
static void sub_08097B24(Entity* this);
@@ -21,13 +19,13 @@ void LilypadSmall(Entity* this) {
this->spriteSettings.draw = TRUE;
this->spritePriority.b0 = 7;
this->child = GetCurrentRoomProperty(this->type2);
- sub_080A2CC0(this, &this->child, &this->field_0x70.HALF.LO);
+ sub_080A2CC0(this, (u16**)&this->child, &this->field_0x70.HALF.LO);
}
sub_080A2BE4(this, sub_08097ADC(this));
sub_08097B24(this);
psVar4 = (u16*)&this->field_0x70;
if (--*psVar4 == 0) {
- sub_080A2CC0(this, &this->child, psVar4);
+ sub_080A2CC0(this, (u16**)&this->child, psVar4);
}
}