Replace numbers with constants in PlayHitSound

This commit is contained in:
Fredrik Ljungdahl
2022-08-24 07:26:31 +02:00
committed by mid-kid
parent 6de80c7795
commit 14e32d9fd3
+2 -2
View File
@@ -1199,9 +1199,9 @@ endr
PlayHitSound:
ld a, [wNumHits]
cp $1
cp BATTLEANIM_ENEMY_DAMAGE
jr z, .okay
cp $4
cp BATTLEANIM_PLAYER_DAMAGE
ret nz
.okay