EnSW_CanDashPlayer: third arg bool

This commit is contained in:
blackgamma7 2025-11-25 18:32:48 -05:00
parent 6b9d957d9a
commit c2bf59c390
1 changed files with 2 additions and 2 deletions

View File

@ -937,7 +937,7 @@ void EnSw_SetupNormal(EnSw* this, PlayState* play) {
this->animTimer = Rand_S16Offset(10, 30);
}
if ((DECR(this->dashTimer) == 0) && (EnSW_CanDashPlayer(this, play, 1))) {
if ((DECR(this->dashTimer) == 0) && (EnSW_CanDashPlayer(this, play, true))) {
Actor_PlaySfx(&this->actor, NA_SE_EN_STALWALL_LAUGH);
this->dashTimer = 20;
this->actionFunc = EnSw_Dash;
@ -949,7 +949,7 @@ void EnSw_Dash(EnSw* this, PlayState* play) {
s32 pad;
if (DECR(this->dashTimer) != 0) {
if (EnSW_CanDashPlayer(this, play, 1)) {
if (EnSW_CanDashPlayer(this, play, true)) {
this->targetPos = player->actor.world.pos;
this->targetPos.y += 30.0f;
this->rotZTarget = EnSw_GetTargetPitch(this, &this->targetPos);