summaryrefslogtreecommitdiff
path: root/src/object/lightableSwitch.c
diff options
context:
space:
mode:
author21aslade <21aslade@go.dsdmail.net>2020-11-07 15:22:02 -0700
committer21aslade <21aslade@go.dsdmail.net>2020-11-07 15:22:02 -0700
commitd04dc143fbbef8feef61daf39d110703f4dfda9b (patch)
tree626b7ee4279b2224aa06bef8231fd6daa4363998 /src/object/lightableSwitch.c
parent4b6f822829d6dd771ed995030f1bf1d24f204536 (diff)
parentf1bfe499de0afdd8e93c5e3e0e6c9e12b3343e1b (diff)
Merge branch 'master' of https://github.com/zeldaret/tmc
Diffstat (limited to 'src/object/lightableSwitch.c')
-rw-r--r--src/object/lightableSwitch.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/object/lightableSwitch.c b/src/object/lightableSwitch.c
index 77c6489a..5d3e693c 100644
--- a/src/object/lightableSwitch.c
+++ b/src/object/lightableSwitch.c
@@ -7,7 +7,7 @@
extern void sub_0809EB30(Entity*);
extern void sub_0809EAD8(Entity*);
extern void sub_0809EABC(Entity*);
-extern void sub_08004488(u32);
+extern void EnqueueSFX(u32);
extern void sub_080A2CC0(Entity*, Entity**, u16*);
extern Entity* GetCurrentRoomProperty(u32);
extern void SetTile(u32, u32, u32);
@@ -45,12 +45,12 @@ void sub_0809EA34(Entity* this) {
void sub_0809EA80(Entity* this) {
if ((this->bitfield & 0x80) != 0) {
- if (CheckFlags(this->field_0x86) != 0) {
- ClearFlag(this->field_0x86);
+ if (CheckFlags(this->field_0x86.HWORD) != 0) {
+ ClearFlag(this->field_0x86.HWORD);
} else {
- SetFlag(this->field_0x86);
+ SetFlag(this->field_0x86.HWORD);
}
- sub_08004488(0x110);
+ EnqueueSFX(0x110);
}
sub_0809EABC(this);
}
@@ -59,7 +59,7 @@ void sub_0809EABC(Entity* this) {
bool32 anySet;
u32 f;
- f = CheckFlags(this->field_0x86);
+ f = CheckFlags(this->field_0x86.HWORD);
anySet = (-f | f) >> 0x1F;
if (this->frameIndex != anySet) {
this->frameIndex = anySet;
@@ -122,8 +122,8 @@ void sub_0809EBD8(Entity* this) {
this->action = 2;
this->actionDelay = 0x10;
this->frameIndex = 2;
- SetFlag(this->field_0x86);
- sub_08004488(0x110);
+ SetFlag(this->field_0x86.HWORD);
+ EnqueueSFX(0x110);
}
}
@@ -136,8 +136,8 @@ void sub_0809EC08(Entity* this) {
if (--this->actionDelay == 0) {
this->action = 1;
this->frameIndex = 3;
- ClearFlag(this->field_0x86);
- sub_08004488(0x110);
+ ClearFlag(this->field_0x86.HWORD);
+ EnqueueSFX(0x110);
}
}
}