From 5eabe872a5ac023f0a567098b6bb3badfb16ac6b Mon Sep 17 00:00:00 2001 From: Mauro Junior <45118493+jetrotal@users.noreply.github.com> Date: Fri, 6 Oct 2023 18:21:31 -0300 Subject: [PATCH] keep FF speed as a multiplier now speedup command is also influenced by FF buttons. Put a cap of 100 to avoid glitches. --- src/game_interpreter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game_interpreter.cpp b/src/game_interpreter.cpp index 4fdb661609c..eb48f8a6cef 100644 --- a/src/game_interpreter.cpp +++ b/src/game_interpreter.cpp @@ -4646,7 +4646,8 @@ bool Game_Interpreter::CommandManiacCallCommand(lcf::rpg::EventCommand const&) { } bool Game_Interpreter::CommandSetGameSpeed(lcf::rpg::EventCommand const& com) { - int32_t speed = ValueOrVariable(com.parameters[0], com.parameters[1]); + int32_t speed = ValueOrVariable(com.parameters[0], com.parameters[1]) * Game_Clock::GetGameSpeedFactor(); + if (speed > 100) speed = 100; Game_Clock::SetGameSpeedFactor(speed); return true; }