summaryrefslogtreecommitdiff
path: root/src/object/lightDoor.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/lightDoor.c
parent73901a0a012d55ebb66a4627dcb246d19737fcb5 (diff)
parent5b2cafdc894823d57beee8f3947a391d881d91de (diff)
Merge pull request #701 from Henny022p/cleanup/250302HEADmaster
Various code cleanup changes
Diffstat (limited to 'src/object/lightDoor.c')
-rw-r--r--src/object/lightDoor.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/object/lightDoor.c b/src/object/lightDoor.c
index 3bb41e19..522084a0 100644
--- a/src/object/lightDoor.c
+++ b/src/object/lightDoor.c
@@ -4,15 +4,18 @@
*
* @brief Light Door object
*/
-#include "functions.h"
#include "object.h"
+#include "asm.h"
+#include "flags.h"
+#include "room.h"
+#include "physics.h"
#include "screen.h"
#include "tiles.h"
typedef struct {
/*0x00*/ Entity base;
/*0x68*/ u8 unk_68[30];
- /*0x86*/ u16 unk_86;
+ /*0x86*/ u16 flag;
} LightDoorEntity;
void LightDoor_Init(LightDoorEntity*);
@@ -31,7 +34,7 @@ void LightDoor(LightDoorEntity* this) {
void LightDoor_Init(LightDoorEntity* this) {
if (super->type == 0) {
- if (CheckFlags(this->unk_86)) {
+ if (CheckFlags(this->flag)) {
DeleteThisEntity();
}
super->action = 1;