diff options
| author | Alejandro Javier Asenjo Nitti <alejandro.asenjo88@gmail.com> | 2024-08-15 02:56:41 -0300 |
|---|---|---|
| committer | Alejandro Javier Asenjo Nitti <alejandro.asenjo88@gmail.com> | 2024-08-15 02:56:41 -0300 |
| commit | bef7345bf77c3a9f6868d260c7e120b1747b8c4e (patch) | |
| tree | 769136907b90a281b96adaa2c62c2600040ac3b1 /src/engine/fox_play.c | |
| parent | ccb74bd0fe37f6de5516e2ecd2eb52487a02f416 (diff) | |
leftState -> leftWingState
Diffstat (limited to 'src/engine/fox_play.c')
| -rw-r--r-- | src/engine/fox_play.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/engine/fox_play.c b/src/engine/fox_play.c index d69cd22e..b59617ad 100644 --- a/src/engine/fox_play.c +++ b/src/engine/fox_play.c @@ -169,7 +169,7 @@ void Player_WingEffects(Player* player) { if ((gLevelType == LEVELTYPE_PLANET) || ((player->alternateView == true) && (gLevelMode == LEVELMODE_ON_RAILS))) { player->yBob = -SIN_DEG(player->bobPhase) * 0.5f; - if ((player->arwing.rightWingState <= WINGSTATE_BROKEN) || (player->arwing.leftState <= WINGSTATE_BROKEN)) { + if ((player->arwing.rightWingState <= WINGSTATE_BROKEN) || (player->arwing.leftWingState <= WINGSTATE_BROKEN)) { player->rockAngle = SIN_DEG(player->rockPhase) * 5.0f; } else { player->rockAngle = SIN_DEG(player->rockPhase) * 1.5f; @@ -194,7 +194,7 @@ void Player_DamageEffects(Player* player) { RAND_FLOAT(0.02f) + 0.02f, player->num + 1); } } - if (player->arwing.leftState <= WINGSTATE_BROKEN) { + if (player->arwing.leftWingState <= WINGSTATE_BROKEN) { if (((gGameFrameCount % 2U) == 0) && (gLeftWingDebrisTimer[player->num] != 0)) { func_effect_8007D10C(RAND_FLOAT_CENTERED(10.0f) + player->hit2.x, RAND_FLOAT(5.0f) + player->hit2.y, player->hit2.z, 1.0f); @@ -838,11 +838,11 @@ void Player_DamageWings(Player* player, s32 side, s32 damage) { } } else if (side == 2) { gLeftWingFlashTimer[player->num] = 30; - if (player->arwing.leftState == WINGSTATE_INTACT) { + if (player->arwing.leftWingState == WINGSTATE_INTACT) { gLeftWingHealth[player->num] -= damage; if (gLeftWingHealth[player->num] <= 0) { Play_SpawnDebris(0, player->hit2.x, player->hit2.y, player->hit2.z); - player->arwing.leftState = WINGSTATE_BROKEN; + player->arwing.leftWingState = WINGSTATE_BROKEN; func_effect_8007D0E0(player->hit2.x, player->hit2.y, player->hit2.z, 2.0f); gLeftWingDebrisTimer[player->num] = 50; Player_PlaySfx(player->sfxSource, NA_SE_ARWING_WING_BROKEN, player->num); @@ -1621,7 +1621,7 @@ void Player_UpdateHitbox(Player* player) { Matrix_RotateZ(gCalcMatrix, -(player->bankAngle * M_DTOR), MTXF_APPLY); sp3C.y = 0.0f; sp3C.z = 0.0f; - if (player->arwing.leftState == WINGSTATE_INTACT) { + if (player->arwing.leftWingState == WINGSTATE_INTACT) { sp3C.x = 40.0f; } else { sp3C.y = -10.0f; @@ -3293,7 +3293,7 @@ bool Player_UpdateLockOn(Player* player) { void Player_Shoot(Player* player) { switch (player->form) { case FORM_ARWING: - if ((player->arwing.rightWingState <= WINGSTATE_BROKEN) || (player->arwing.leftState <= WINGSTATE_BROKEN)) { + if ((player->arwing.rightWingState <= WINGSTATE_BROKEN) || (player->arwing.leftWingState <= WINGSTATE_BROKEN)) { gLaserStrength[player->num] = LASERS_SINGLE; } @@ -3349,9 +3349,9 @@ void Player_ArwingBank(Player* player) { f32 sp38; sp3C = 0.0f; - if ((player->arwing.rightWingState <= WINGSTATE_BROKEN) && (player->arwing.leftState == WINGSTATE_INTACT)) { + if ((player->arwing.rightWingState <= WINGSTATE_BROKEN) && (player->arwing.leftWingState == WINGSTATE_INTACT)) { sp3C = -17.0f; - } else if ((player->arwing.leftState <= WINGSTATE_BROKEN) && (player->arwing.rightWingState == WINGSTATE_INTACT)) { + } else if ((player->arwing.leftWingState <= WINGSTATE_BROKEN) && (player->arwing.rightWingState == WINGSTATE_INTACT)) { sp3C = 17.0f; } @@ -3672,7 +3672,7 @@ void Player_MoveArwing360(Player* player) { sp4C.x -= 2.5f; sp4C.y -= 2.5f; } - if (player->arwing.leftState <= WINGSTATE_BROKEN) { + if (player->arwing.leftWingState <= WINGSTATE_BROKEN) { sp4C.x += 2.5f; sp4C.y -= 2.5f; } @@ -3947,7 +3947,7 @@ void Player_MoveArwingOnRails(Player* player) { player->vel.x += 2.5f; player->vel.y -= 2.5f; } - if (player->arwing.leftState <= WINGSTATE_BROKEN) { + if (player->arwing.leftWingState <= WINGSTATE_BROKEN) { player->vel.x -= 2.5f; player->vel.y -= 2.5f; } @@ -4417,7 +4417,7 @@ void Player_Setup(Player* playerx) { } player->arwing.rightWingState = WINGSTATE_INTACT; - player->arwing.leftState = WINGSTATE_INTACT; + player->arwing.leftWingState = WINGSTATE_INTACT; if (gExpertMode) { gLeftWingHealth[gPlayerNum] = 10; @@ -4521,7 +4521,7 @@ void Player_Setup(Player* playerx) { player->shields = D_ctx_80177C9C - 1; gGoldRingCount[0] = D_ctx_80177C94; player->arwing.rightWingState = D_ctx_80177CAC; - player->arwing.leftState = D_ctx_80177CB4; + player->arwing.leftWingState = D_ctx_80177CB4; gRightWingHealth[0] = D_ctx_80177CBC; gLeftWingHealth[0] = D_ctx_80177CC4; if (gCurrentLevel == LEVEL_VENOM_ANDROSS) { |
