summaryrefslogtreecommitdiff
path: root/src/object/lightableSwitch.c
diff options
context:
space:
mode:
authortheo3 <arisstephenson2@gmail.com>2023-12-30 21:07:06 -0800
committertheo3 <arisstephenson2@gmail.com>2023-12-30 21:07:06 -0800
commit5049daabc59d113152143d123aea2798d9487a0c (patch)
treeb502c841b46f25267be35f3986bd90ef45cba9da /src/object/lightableSwitch.c
parentbd1be092aa85e4eb1d368bef05c88eaae2a0ae84 (diff)
label contact flags
Diffstat (limited to 'src/object/lightableSwitch.c')
-rw-r--r--src/object/lightableSwitch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/object/lightableSwitch.c b/src/object/lightableSwitch.c
index 927a4c9d..8c68f708 100644
--- a/src/object/lightableSwitch.c
+++ b/src/object/lightableSwitch.c
@@ -67,7 +67,7 @@ void LightableSwitch_Type0_Init(LightableSwitchEntity* this) {
void LightableSwitch_Type0_Action1(LightableSwitchEntity* this) {
- if ((super->contactFlags & 0x80) != 0) {
+ if ((super->contactFlags & CONTACT_TAKE_DAMAGE) != 0) {
if (CheckFlags(this->unk_86) != 0) {
ClearFlag(this->unk_86);
} else {
@@ -147,7 +147,7 @@ void LightableSwitch_Type1_Init(LightableSwitchEntity* this) {
}
void LightableSwitch_Type1_Action1(LightableSwitchEntity* this) {
- if ((super->contactFlags & 0x80) != 0) {
+ if ((super->contactFlags & CONTACT_TAKE_DAMAGE) != 0) {
super->action = 2;
super->timer = 16;
super->frameIndex = 2;