From ee8ce6c1e1f7a718d06ce1b089795ca52f84065e Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 1 Jan 2009 12:05:02 +0000 Subject: [PATCH] - Changed Linux's I_MSTime to work the same as Windows's. SVN r1342 (trunk) --- src/sdl/i_system.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sdl/i_system.cpp b/src/sdl/i_system.cpp index 67e57aa59..f77372f94 100644 --- a/src/sdl/i_system.cpp +++ b/src/sdl/i_system.cpp @@ -112,7 +112,10 @@ void I_EndRead(void) // [RH] Returns time in milliseconds unsigned int I_MSTime (void) { - return SDL_GetTicks (); + unsigned int time = SDL_GetTicks (); + if (!basetime) + basetime = time; + return time - basetime; } static DWORD TicStart;