Skip to content

Commit

Permalink
keep FF speed as a multiplier
Browse files Browse the repository at this point in the history
now speedup command is also influenced by FF buttons.
Put a cap of 100 to avoid glitches.
  • Loading branch information
jetrotal committed Oct 6, 2023
1 parent 9154831 commit 5eabe87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/game_interpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5eabe87

Please sign in to comment.