mirror of
https://github.com/zeldaret/oot.git
synced 2025-02-27 03:24:45 +00:00
link two if
parts with and else
https://github.com/zeldaret/oot/pull/2295#discussion_r1841272907
This commit is contained in:
parent
1fa1922a9b
commit
911550550f
1 changed files with 1 additions and 3 deletions
|
@ -1029,9 +1029,7 @@ s32 EnGo2_IsRollingOnGround(EnGo2* this, s16 bounceCount, f32 boundSpeed, s16 ru
|
||||||
if (DECR(this->bounceTimer)) {
|
if (DECR(this->bounceTimer)) {
|
||||||
if (!rumble) {
|
if (!rumble) {
|
||||||
return true;
|
return true;
|
||||||
}
|
} else {
|
||||||
|
|
||||||
{
|
|
||||||
this->actor.world.pos.y =
|
this->actor.world.pos.y =
|
||||||
(this->bounceTimer & 1) ? this->actor.world.pos.y + 1.5f : this->actor.world.pos.y - 1.5f;
|
(this->bounceTimer & 1) ? this->actor.world.pos.y + 1.5f : this->actor.world.pos.y - 1.5f;
|
||||||
Actor_PlaySfx(&this->actor, NA_SE_EV_BIGBALL_ROLL - SFX_FLAG);
|
Actor_PlaySfx(&this->actor, NA_SE_EV_BIGBALL_ROLL - SFX_FLAG);
|
||||||
|
|
Loading…
Add table
Reference in a new issue