mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-25 13:55:36 -04:00
fix game speed affect DRS (#1889)
This commit is contained in:
parent
05f0927196
commit
0daec4958c
@ -35,6 +35,7 @@
|
||||
#include "d_main.h"
|
||||
#include "doomdef.h"
|
||||
#include "doomstat.h"
|
||||
#include "g_game.h"
|
||||
#include "i_input.h"
|
||||
#include "i_printf.h"
|
||||
#include "i_system.h"
|
||||
@ -1486,7 +1487,7 @@ static void I_ResetTargetRefresh(void)
|
||||
}
|
||||
else
|
||||
{
|
||||
targetrefresh = TICRATE;
|
||||
targetrefresh = TICRATE * realtic_clock_rate / 100;
|
||||
}
|
||||
|
||||
UpdateLimiter();
|
||||
|
@ -2114,6 +2114,7 @@ static boolean ShortcutResponder(const event_t *ev)
|
||||
realtic_clock_rate = BETWEEN(10, 1000, realtic_clock_rate);
|
||||
displaymsg("Game Speed: %d", realtic_clock_rate);
|
||||
I_SetTimeScale(realtic_clock_rate);
|
||||
setrefreshneeded = true;
|
||||
}
|
||||
|
||||
if (M_InputActivated(input_speed_down) && !D_CheckNetConnect()
|
||||
@ -2123,6 +2124,7 @@ static boolean ShortcutResponder(const event_t *ev)
|
||||
realtic_clock_rate = BETWEEN(10, 1000, realtic_clock_rate);
|
||||
displaymsg("Game Speed: %d", realtic_clock_rate);
|
||||
I_SetTimeScale(realtic_clock_rate);
|
||||
setrefreshneeded = true;
|
||||
}
|
||||
|
||||
if (M_InputActivated(input_speed_default) && !D_CheckNetConnect()
|
||||
@ -2131,6 +2133,7 @@ static boolean ShortcutResponder(const event_t *ev)
|
||||
realtic_clock_rate = 100;
|
||||
displaymsg("Game Speed: %d", realtic_clock_rate);
|
||||
I_SetTimeScale(realtic_clock_rate);
|
||||
setrefreshneeded = true;
|
||||
}
|
||||
|
||||
if (M_InputActivated(input_help)) // Help key
|
||||
|
@ -2796,6 +2796,8 @@ void MN_ResetTimeScale(void)
|
||||
}
|
||||
|
||||
I_SetTimeScale(time_scale);
|
||||
|
||||
setrefreshneeded = true;
|
||||
}
|
||||
|
||||
static setup_menu_t gen_settings6[] = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user