summaryrefslogtreecommitdiff
path: root/src/object/bigIceBlock.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/bigIceBlock.c
parent73901a0a012d55ebb66a4627dcb246d19737fcb5 (diff)
parent5b2cafdc894823d57beee8f3947a391d881d91de (diff)
Merge pull request #701 from Henny022p/cleanup/250302HEADmaster
Various code cleanup changes
Diffstat (limited to 'src/object/bigIceBlock.c')
-rw-r--r--src/object/bigIceBlock.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/object/bigIceBlock.c b/src/object/bigIceBlock.c
index dd204c78..543f323f 100644
--- a/src/object/bigIceBlock.c
+++ b/src/object/bigIceBlock.c
@@ -8,6 +8,13 @@
#include "hitbox.h"
#include "item.h"
#include "object.h"
+#include "asm.h"
+#include "sound.h"
+#include "flags.h"
+#include "effects.h"
+#include "room.h"
+#include "physics.h"
+#include "player.h"
#include "tiles.h"
typedef struct {
@@ -16,7 +23,7 @@ typedef struct {
/*0x6c*/ u16 unk_6c;
/*0x6e*/ u16 unk_6e;
/*0x70*/ u8 unk_70[0x16];
- /*0x86*/ u16 unk_86;
+ /*0x86*/ u16 flag;
} BigIceBlockEntity;
extern void (*const BigIceBlock_Actions[])(BigIceBlockEntity*);
@@ -40,7 +47,7 @@ void BigIceBlock(BigIceBlockEntity* this) {
void BigIceBlock_Init(BigIceBlockEntity* this) {
Entity* obj;
- if (CheckFlags(this->unk_86)) {
+ if (CheckFlags(this->flag)) {
DeleteThisEntity();
}
super->action = 1;
@@ -88,9 +95,9 @@ void BigIceBlock_Action2(BigIceBlockEntity* this) {
SetAffineInfo(super, 0x100, tmp, 0);
if (super->type != 1) {
if (super->type != 2) {
- SetFlag(this->unk_86);
+ SetFlag(this->flag);
} else {
- CreateGroundItemWithFlags(super, ITEM_SMALL_KEY, 0, this->unk_86);
+ CreateGroundItemWithFlags(super, ITEM_SMALL_KEY, 0, this->flag);
}
}
super->action = 3;