Skip to content

Commit 5eabe87

Browse files
committed
keep FF speed as a multiplier
now speedup command is also influenced by FF buttons. Put a cap of 100 to avoid glitches.
1 parent 9154831 commit 5eabe87

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/game_interpreter.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -4646,7 +4646,8 @@ bool Game_Interpreter::CommandManiacCallCommand(lcf::rpg::EventCommand const&) {
46464646
}
46474647

46484648
bool Game_Interpreter::CommandSetGameSpeed(lcf::rpg::EventCommand const& com) {
4649-
int32_t speed = ValueOrVariable(com.parameters[0], com.parameters[1]);
4649+
int32_t speed = ValueOrVariable(com.parameters[0], com.parameters[1]) * Game_Clock::GetGameSpeedFactor();
4650+
if (speed > 100) speed = 100;
46504651
Game_Clock::SetGameSpeedFactor(speed);
46514652
return true;
46524653
}

0 commit comments

Comments
 (0)