From b7eb0c226fca3c0f37184b11dcac90c94cd4a9d4 Mon Sep 17 00:00:00 2001 From: walkawayy <81546780+walkawayy@users.noreply.github.com> Date: Fri, 23 Jun 2023 00:56:49 -0400 Subject: [PATCH] input: fix holding down up or down to scroll the passport faster Resolves #883. --- CHANGELOG.md | 1 + src/game/input.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a8ffd575..61fc40aab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ## [Unreleased](https://github.com/rr-/Tomb1Main/compare/stable...develop) - ××××-××-×× - fixed the ape not performing the vault animation when climbing (#880) +- fixed holding down up or down to scroll the passport faster (#883, regression from 2.14) ## [2.15](https://github.com/rr-/Tomb1Main/compare/2.14...2.15) - 2023-06-08 - added an option to enable TR2+ jump-twist and somersault animations (#88) diff --git a/src/game/input.c b/src/game/input.c index 8b3d9ba23..08681b7eb 100644 --- a/src/game/input.c +++ b/src/game/input.c @@ -34,6 +34,7 @@ static INPUT_STATE Input_GetDebounced(INPUT_STATE input) m_HoldBack = 0; } else if (input.back && ++m_HoldBack >= DELAY_FRAMES + HOLD_FRAMES) { result.back = 1; + result.menu_down = 1; m_HoldBack = DELAY_FRAMES; } @@ -41,6 +42,7 @@ static INPUT_STATE Input_GetDebounced(INPUT_STATE input) m_HoldForward = 0; } else if (input.forward && ++m_HoldForward >= DELAY_FRAMES + HOLD_FRAMES) { result.forward = 1; + result.menu_up = 1; m_HoldForward = DELAY_FRAMES; }