summaryrefslogtreecommitdiff
path: root/src/object/metalDoor.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/metalDoor.c
parent73901a0a012d55ebb66a4627dcb246d19737fcb5 (diff)
parent5b2cafdc894823d57beee8f3947a391d881d91de (diff)
Merge pull request #701 from Henny022p/cleanup/250302HEADmaster
Various code cleanup changes
Diffstat (limited to 'src/object/metalDoor.c')
-rw-r--r--src/object/metalDoor.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/object/metalDoor.c b/src/object/metalDoor.c
index 95f7f9a1..3281ff53 100644
--- a/src/object/metalDoor.c
+++ b/src/object/metalDoor.c
@@ -4,11 +4,12 @@
*
* @brief Metal Door object
*/
+#include "object/lockedDoor.h"
#include "asm.h"
#include "effects.h"
#include "entity.h"
#include "flags.h"
-#include "functions.h"
+#include "physics.h"
#include "hitbox.h"
#include "room.h"
#include "sound.h"
@@ -24,11 +25,10 @@ typedef struct {
/*0x78*/ u16 unk_78;
/*0x7a*/ u16 unk_7a;
/*0x7c*/ u8 unused2[8];
- /*0x84*/ u16 unk_84;
- /*0x86*/ u16 unk_86;
+ /*0x84*/ u16 flag1;
+ /*0x86*/ u16 flag2;
} MetalDoorEntity;
-extern u32 sub_08083734(Entity*, u32);
void sub_080A080C(MetalDoorEntity* this);
void sub_080A0870(MetalDoorEntity* this);
void MetalDoor_Init(MetalDoorEntity* this);
@@ -45,7 +45,7 @@ void MetalDoor(MetalDoorEntity* this) {
}
void MetalDoor_Init(MetalDoorEntity* this) {
- if ((this->unk_84 != 0xffff) && CheckFlags(this->unk_84)) {
+ if ((this->flag1 != 0xffff) && CheckFlags(this->flag1)) {
DeleteThisEntity();
}
super->action = 1;
@@ -97,7 +97,7 @@ void MetalDoor_Action2(MetalDoorEntity* this) {
}
void MetalDoor_Action3(MetalDoorEntity* this) {
- if (CheckFlags(this->unk_86)) {
+ if (CheckFlags(this->flag2)) {
super->action = 4;
super->timer = 12;
super->direction = 0x10;