summaryrefslogtreecommitdiff
path: root/src/collision.c
diff options
context:
space:
mode:
authortheo3 <arisstephenson2@gmail.com>2023-12-30 20:05:32 -0800
committertheo3 <arisstephenson2@gmail.com>2023-12-30 20:05:32 -0800
commit201955ea052a5188f2e59bdcdbf6c52ff158ee66 (patch)
tree66474a7515b56c90e1d0b94a0a39f42da6677d71 /src/collision.c
parent37714644960c56650dd1067b86aafa685eaf01f4 (diff)
create enemy struct and enemy flags
Diffstat (limited to 'src/collision.c')
-rw-r--r--src/collision.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/collision.c b/src/collision.c
index 6ec7f5f3..d1408375 100644
--- a/src/collision.c
+++ b/src/collision.c
@@ -247,7 +247,7 @@ s32 CalculateDamage(Entity* org, Entity* tgt) {
}
health = org->health - damage;
if (org->kind == ENEMY) {
- if ((((GenericEntity*)org)->field_0x6c.HALF.HI & 1) != 0)
+ if (((Enemy*)org)->enemyFlags & EM_FLAG_BOSS)
SoundReqClipped(org, SFX_BOSS_HIT);
else
SoundReqClipped(org, SFX_HIT);