summaryrefslogtreecommitdiff
path: root/src/object/pot.c
diff options
context:
space:
mode:
authorHenny022p <73211432+Henny022p@users.noreply.github.com>2026-02-08 18:32:38 +0100
committerGitHub <noreply@github.com>2026-02-08 18:32:38 +0100
commit5ab63f00e522ff69c5bc987e379f0163943f2833 (patch)
tree53622222ac729c6ab6dc75ef7f9bafa8031daf18 /src/object/pot.c
parent73901a0a012d55ebb66a4627dcb246d19737fcb5 (diff)
parent5b2cafdc894823d57beee8f3947a391d881d91de (diff)
Merge pull request #701 from Henny022p/cleanup/250302HEADmaster
Various code cleanup changes
Diffstat (limited to 'src/object/pot.c')
-rw-r--r--src/object/pot.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/object/pot.c b/src/object/pot.c
index adfcb75d..758c6b92 100644
--- a/src/object/pot.c
+++ b/src/object/pot.c
@@ -6,12 +6,16 @@
*/
#include "entity.h"
#include "flags.h"
-#include "functions.h"
+#include "object/pot.h"
#include "hitbox.h"
#include "object.h"
+#include "asm.h"
+#include "effects.h"
+#include "physics.h"
#include "object/itemOnGround.h"
#include "player.h"
#include "room.h"
+#include "script.h"
#include "sound.h"
#include "tiles.h"
@@ -22,7 +26,7 @@ typedef struct {
/*0x72*/ u8 unused2[11];
/*0x7d*/ u8 unk_7d;
/*0x7e*/ u8 unused3[8];
- /*0x86*/ u16 unk_86;
+ /*0x86*/ u16 flag;
} PotEntity;
void Pot_Action5(PotEntity*);
@@ -60,7 +64,7 @@ void Pot(PotEntity* this) {
}
void Pot_Init(PotEntity* this) {
- if (super->type2 == 1 && CheckFlags(this->unk_86)) {
+ if (super->type2 == 1 && CheckFlags(this->flag)) {
DeleteThisEntity();
}
@@ -306,7 +310,7 @@ static void BreakPot(PotEntity* this, Entity* parent) {
}
if (super->type2 == 1) {
- SetFlag(this->unk_86);
+ SetFlag(this->flag);
}
DeleteThisEntity();
@@ -327,7 +331,7 @@ u32 sub_0808288C(Entity* this, u32 form, u32 arg2, u32 arg3) {
if (entity != NULL) {
if (arg3 == 2) {
entity->base.timer = 5;
- entity->unk_86 = ((PotEntity*)this)->unk_86; // This function is also used by flyingSkull.
+ entity->flag = ((PotEntity*)this)->flag; // This function is also used by flyingSkull.
} else {
entity->base.timer = 0;
}