diff options
| author | elijah-thomas774 <elijahthomas774@gmail.com> | 2026-10-03 22:06:36 -0400 |
|---|---|---|
| committer | elijah-thomas774 <elijahthomas774@gmail.com> | 2026-10-03 22:06:36 -0400 |
| commit | be8b0400594fe47ea8ff964fc1d3ff70415ee3ba (patch) | |
| tree | a03558afca086e95e9ebff4bb4272a3f014a8fc2 /src | |
| parent | 65300ad9a7852c0ccb51a08e20e0b73586d41f0e (diff) | |
d_a_fish_mgr_base fpr alloc fix
Diffstat (limited to 'src')
| -rw-r--r-- | src/d/a/d_a_fish_mgr_base.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/d/a/d_a_fish_mgr_base.cpp b/src/d/a/d_a_fish_mgr_base.cpp index 6fbecc70..6b8d1cb1 100644 --- a/src/d/a/d_a_fish_mgr_base.cpp +++ b/src/d/a/d_a_fish_mgr_base.cpp @@ -9,16 +9,15 @@ int dAcFishMgrBase_c::actorCreate() { } int dAcFishMgrBase_c::actorPostCreate() { - // TODO - FPR regswaps - field_0x148 = 1000.0f; + f32 f = 1000.0f; // Temp needed for reg alloc? + field_0x148 = f; mVec3_c v = mPosition; v.y += 20000.0f; - if (dBgS_WtrLinChk::SetIsWater(&v, &mPosition, nullptr)) { field_0x14C = dBgS_WtrLinChk::GetInstance().GetLinEnd().y; if (mPosition.y + field_0x148 > field_0x14C) { field_0x150 = true; - field_0x148 = nw4r::math::FAbs(field_0x14C - mPosition.y); + field_0x148 = nw4r::math::FAbs(field_0x14C - mPosition.y); } else { field_0x150 = false; } @@ -27,7 +26,8 @@ int dAcFishMgrBase_c::actorPostCreate() { } f32 offset = 200.0f; - if (field_0x14C - field_0x148 - mPosition.y < offset) { + f32 f0 = field_0x14C - field_0x148 - mPosition.y; + if (f0 < offset) { f32 t = field_0x14C - mPosition.y - offset; if (t > offset) { field_0x148 = t; @@ -39,7 +39,7 @@ int dAcFishMgrBase_c::actorPostCreate() { } else { field_0x151 = false; } - + return SUCCEEDED; } |
