mirror of
https://github.com/zeldaret/oot.git
synced 2024-12-27 23:36:22 +00:00
fix mistake in z_bg_hidan_hamstep (#771)
if you're just going to close this pr just wait a week and review it then.
This commit is contained in:
parent
7b2b88d552
commit
098dc00f31
1 changed files with 2 additions and 2 deletions
|
@ -263,7 +263,7 @@ void func_80888694(BgHidanHamstep* this, BgHidanHamstep* parent) {
|
|||
|
||||
void func_80888734(BgHidanHamstep* this) {
|
||||
BgHidanHamstep* parent = (BgHidanHamstep*)this->dyna.actor.parent;
|
||||
f32 factor = SREG(30) * 0.5f;
|
||||
f32 frameDivisor = R_UPDATE_RATE * 0.5f;
|
||||
|
||||
if (parent != NULL) {
|
||||
this->dyna.actor.velocity.y = parent->dyna.actor.velocity.y;
|
||||
|
@ -271,7 +271,7 @@ void func_80888734(BgHidanHamstep* this) {
|
|||
if ((this->dyna.actor.params & 0xFF) == 1) {
|
||||
this->dyna.actor.world.pos.y = parent->dyna.actor.world.pos.y - 100.0f;
|
||||
} else {
|
||||
this->dyna.actor.world.pos.y += (this->dyna.actor.velocity.y * factor);
|
||||
this->dyna.actor.world.pos.y += (this->dyna.actor.velocity.y * frameDivisor);
|
||||
}
|
||||
|
||||
func_80888694(this, parent);
|
||||
|
|
Loading…
Reference in a new issue