mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-21 14:31:17 +00:00
speedXZ -> speed (#1477)
* speedXZ -> speed * += * revert arg in player function * anon review * engineer review * forgot one * last review * revert decimal
This commit is contained in:
parent
4a9873775c
commit
92e03cf747
171 changed files with 1771 additions and 1773 deletions
|
@ -58,11 +58,9 @@ void BgPushbox_Destroy(Actor* thisx, PlayState* play) {
|
|||
}
|
||||
|
||||
void BgPushbox_UpdateImpl(BgPushbox* this, PlayState* play) {
|
||||
this->dyna.actor.speedXZ += this->dyna.unk_150 * 0.2f;
|
||||
this->dyna.actor.speedXZ = (this->dyna.actor.speedXZ < -1.0f)
|
||||
? -1.0f
|
||||
: ((this->dyna.actor.speedXZ > 1.0f) ? 1.0f : this->dyna.actor.speedXZ);
|
||||
Math_StepToF(&this->dyna.actor.speedXZ, 0.0f, 0.2f);
|
||||
this->dyna.actor.speed += this->dyna.unk_150 * 0.2f;
|
||||
this->dyna.actor.speed = CLAMP(this->dyna.actor.speed, -1.0f, 1.0f);
|
||||
Math_StepToF(&this->dyna.actor.speed, 0.0f, 0.2f);
|
||||
this->dyna.actor.world.rot.y = this->dyna.unk_158;
|
||||
Actor_MoveForward(&this->dyna.actor);
|
||||
Actor_UpdateBgCheckInfo(play, &this->dyna.actor, 20.0f, 40.0f, 40.0f,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue