diff --git a/source/duke3d/src/savegame.cpp b/source/duke3d/src/savegame.cpp index ab4fe7627..019a84e50 100644 --- a/source/duke3d/src/savegame.cpp +++ b/source/duke3d/src/savegame.cpp @@ -486,16 +486,16 @@ int32_t G_LoadPlayer(FSaveGameNode *sv) ////////// TIMER SAVING/RESTORING ////////// static struct { - int32_t totalclock, totalclocklock; // engine - int32_t ototalclock, lockclock; // game + ClockTicks totalclock, totalclocklock; // engine + ClockTicks ototalclock, lockclock; // game } g_timers; static void G_SaveTimers(void) { - g_timers.totalclock = (int32_t) totalclock; - g_timers.totalclocklock = (int32_t) totalclocklock; - g_timers.ototalclock = (int32_t) ototalclock; - g_timers.lockclock = (int32_t) lockclock; + g_timers.totalclock = totalclock; + g_timers.totalclocklock = totalclocklock; + g_timers.ototalclock = ototalclock; + g_timers.lockclock = lockclock; } static void G_RestoreTimers(void) @@ -550,7 +550,6 @@ bool G_SavePlayer(FSaveGameNode *sv) Net_WaitForServer(); G_RestoreTimers(); - ototalclock = totalclock; VM_OnEvent(EVENT_POSTSAVEGAME, g_player[myconnectindex].ps->i, myconnectindex);