diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2025-05-30 15:16:57 -0400 |
|---|---|---|
| committer | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2025-05-30 15:16:57 -0400 |
| commit | 206c4cbc16ffe2b0ebc8331eb605fec22a482408 (patch) | |
| tree | 6be079a9be3c9acd435987773077f173f1cf2782 /src/d/d_a_leaflift_static.cpp | |
| parent | 22ba12593a2595bdd017023cd074b058287fddf5 (diff) | |
More demo work
Diffstat (limited to 'src/d/d_a_leaflift_static.cpp')
| -rw-r--r-- | src/d/d_a_leaflift_static.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/d/d_a_leaflift_static.cpp b/src/d/d_a_leaflift_static.cpp index f008a052..e7d93350 100644 --- a/src/d/d_a_leaflift_static.cpp +++ b/src/d/d_a_leaflift_static.cpp @@ -18,13 +18,15 @@ BOOL daLlift_c::checkEndDownLift() { /* 80069100-800692C4 .text MoveUpLift__9daLlift_cFv */ BOOL daLlift_c::MoveUpLift() { + f32 max_speed = m_max_speed; + f32 min_speed = m_min_speed; cXyz upLiftPos; bool res = FALSE; mEmitterTimer++; if (current.pos.y != home.pos.y + m_height) { m43D = TRUE; } - float upVel = cLib_addCalc(¤t.pos.y, home.pos.y + m_height, 0.1f, m_max_speed, m_min_speed); + f32 upVel = cLib_addCalc(¤t.pos.y, home.pos.y + m_height, 0.1f, max_speed, min_speed); if (upVel == 0.0f) { mbIsAscending = FALSE; res = TRUE; |
