From 098dc00f3179799ebc979c274ff999c40c4ba666 Mon Sep 17 00:00:00 2001 From: Zelllll <56516451+Zelllll@users.noreply.github.com> Date: Tue, 20 Apr 2021 01:25:14 -0500 Subject: [PATCH] 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. --- src/overlays/actors/ovl_Bg_Hidan_Hamstep/z_bg_hidan_hamstep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/overlays/actors/ovl_Bg_Hidan_Hamstep/z_bg_hidan_hamstep.c b/src/overlays/actors/ovl_Bg_Hidan_Hamstep/z_bg_hidan_hamstep.c index 7d4c23149e..114408d79e 100644 --- a/src/overlays/actors/ovl_Bg_Hidan_Hamstep/z_bg_hidan_hamstep.c +++ b/src/overlays/actors/ovl_Bg_Hidan_Hamstep/z_bg_hidan_hamstep.c @@ -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);