From aa5bdd08841318457bdee08e4d4d51f758b46cba Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 1 Jan 2009 22:35:29 +0000 Subject: [PATCH] - fixed r1342 changes SVN r1345 (trunk) --- src/sdl/i_system.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/sdl/i_system.cpp b/src/sdl/i_system.cpp index f77372f940..f39d817551 100644 --- a/src/sdl/i_system.cpp +++ b/src/sdl/i_system.cpp @@ -109,20 +109,21 @@ void I_EndRead(void) { } -// [RH] Returns time in milliseconds -unsigned int I_MSTime (void) -{ - unsigned int time = SDL_GetTicks (); - if (!basetime) - basetime = time; - return time - basetime; -} static DWORD TicStart; static DWORD TicNext; static DWORD BaseTime; static int TicFrozen; +// [RH] Returns time in milliseconds +unsigned int I_MSTime (void) +{ + unsigned int time = SDL_GetTicks (); + if (!BaseTime) + BaseTime = time; + return time - BaseTime; +} + // // I_GetTime // returns time in 1/35th second tics