Skip to content
Snippets Groups Projects
Commit 62aef145 authored by LJ Sonic's avatar LJ Sonic
Browse files

Fix time functions not starting from zero

parent 404492cb
Branches
Tags
Loading
...@@ -43,18 +43,20 @@ tic_t I_GetTime(void) ...@@ -43,18 +43,20 @@ tic_t I_GetTime(void)
void I_InitializeTime(void) void I_InitializeTime(void)
{ {
g_time.time = 0;
g_time.timefrac = 0;
enterprecise = 0;
oldenterprecise = 0;
tictimer = 0.0;
CV_RegisterVar(&cv_timescale); CV_RegisterVar(&cv_timescale);
// I_StartupTimer is preserved for potential subsystems that need to setup // I_StartupTimer is preserved for potential subsystems that need to setup
// timing information for I_GetPreciseTime and sleeping // timing information for I_GetPreciseTime and sleeping
I_StartupTimer(); I_StartupTimer();
g_time.time = 0;
g_time.timefrac = 0;
enterprecise = I_GetPreciseTime();
oldenterprecise = enterprecise;
entertic = 0;
oldentertics = 0;
tictimer = 0.0;
} }
void I_UpdateTime(fixed_t timescale) void I_UpdateTime(fixed_t timescale)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment