Fix swapped frame advance speed increase/decrease
Frame Advance Speed hotkeys were swapped. This likely occurred because speed and delay are inverses (i.e. a speed increase should DECREASE the delay and vice versa).
This commit is contained in:
parent
9a6f0bd9b2
commit
ea81346fc3
|
@ -88,13 +88,13 @@ static void HandleFrameStepHotkeys()
|
||||||
|
|
||||||
if (IsHotkey(HK_FRAME_ADVANCE_INCREASE_SPEED))
|
if (IsHotkey(HK_FRAME_ADVANCE_INCREASE_SPEED))
|
||||||
{
|
{
|
||||||
frame_step_delay = std::min(frame_step_delay + 1, MAX_FRAME_STEP_DELAY);
|
frame_step_delay = std::max(frame_step_delay - 1, 0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IsHotkey(HK_FRAME_ADVANCE_DECREASE_SPEED))
|
if (IsHotkey(HK_FRAME_ADVANCE_DECREASE_SPEED))
|
||||||
{
|
{
|
||||||
frame_step_delay = std::max(frame_step_delay - 1, 0);
|
frame_step_delay = std::min(frame_step_delay + 1, MAX_FRAME_STEP_DELAY);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue