diff --git a/source/games/duke/src/funct.h b/source/games/duke/src/funct.h index 307c93396..2d78459dc 100644 --- a/source/games/duke/src/funct.h +++ b/source/games/duke/src/funct.h @@ -241,7 +241,6 @@ void setinterpolation(int* posptr); void stopinterpolation(int* posptr); void dointerpolations(int smoothratio); int* animateptr(int i); -void resetGameClock(); void backuppos(player_struct* p, bool noclipping = false); void backuplook(player_struct* p); diff --git a/source/games/duke/src/gameloop.cpp b/source/games/duke/src/gameloop.cpp index cfb856405..7eefb0360 100644 --- a/source/games/duke/src/gameloop.cpp +++ b/source/games/duke/src/gameloop.cpp @@ -116,22 +116,8 @@ void GameInterface::Ticker() // //--------------------------------------------------------------------------- -void resetGameClock() -{ - I_SetFrameTime(); - setGameClockStart(); - cloudclock = 0; -} - -//--------------------------------------------------------------------------- -// -// -// -//--------------------------------------------------------------------------- - void GameInterface::Startup() { - resetGameClock(); ps[myconnectindex].ftq = 0; if (userConfig.CommandMap.IsNotEmpty()) diff --git a/source/games/duke/src/premap.cpp b/source/games/duke/src/premap.cpp index bb82b815c..3000d1868 100644 --- a/source/games/duke/src/premap.cpp +++ b/source/games/duke/src/premap.cpp @@ -756,7 +756,7 @@ void prelevel_common(int g) void resettimevars(void) { - resetGameClock(); + cloudclock = 0; ud.levelclock = 0; levelTextTime = 85; if (camsprite >= 0) diff --git a/source/sw/src/game.cpp b/source/sw/src/game.cpp index 13299f227..85ef4dc9e 100644 --- a/source/sw/src/game.cpp +++ b/source/sw/src/game.cpp @@ -769,13 +769,6 @@ void GameTicker(void) } -void resetGameClock() -{ - I_SetFrameTime(); - setGameClockStart(); - ogameclock = gameclock = 0; -} - void GameInterface::RunGameFrame() { // if the menu initiazed a new game or loaded a savegame, switch to play mode. @@ -785,8 +778,6 @@ void GameInterface::RunGameFrame() { default: case GS_STARTUP: - resetGameClock(); - if (userConfig.CommandMap.IsNotEmpty()) { } diff --git a/source/sw/src/network.cpp b/source/sw/src/network.cpp index 0f73d9f2b..7aaf26c2f 100644 --- a/source/sw/src/network.cpp +++ b/source/sw/src/network.cpp @@ -43,7 +43,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms BEGIN_SW_NS void getinput(InputPacket *, SWBOOL); -void resetGameClock(); static uint8_t tempbuf[576], packbuf[576]; int PlayClock; @@ -164,7 +163,6 @@ InitTimingVars(void) // resettiming(); totalsynctics = 0; - resetGameClock(); randomseed = 17L; MoveSkip8 = 2;