Skip to content

Commit 927a278

Browse files
replace true in should check with actual condition
1 parent 80c6dea commit 927a278

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

soh/src/overlays/actors/ovl_En_Attack_Niw/z_en_attack_niw.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,10 @@ s32 func_809B55EC(EnAttackNiw* this, PlayState* play) {
179179

180180
Actor_SetFocus(&this->actor, this->unk_2E4);
181181
Actor_GetScreenPos(play, &this->actor, &sp1E, &sp1C);
182-
if (GameInteractor_Should(VB_DESTROY_OFFSCREEN_EN_ATTACK_NIW, true, this->actor) &&
183-
((this->actor.projectedPos.z < -20.0f) || (sp1E < 0) || (sp1E > SCREEN_WIDTH) || (sp1C < 0) ||
184-
(sp1C > SCREEN_HEIGHT))) {
182+
if (GameInteractor_Should(VB_DESTROY_OFFSCREEN_EN_ATTACK_NIW,
183+
((this->actor.projectedPos.z < -20.0f) || (sp1E < 0) || (sp1E > SCREEN_WIDTH) ||
184+
(sp1C < 0) || (sp1C > SCREEN_HEIGHT)),
185+
this->actor)) {
185186
return 0;
186187
} else {
187188
return 1;

0 commit comments

Comments
 (0)