mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-13 16:07:45 +00:00
- Changed Linux's I_MSTime to work the same as Windows's.
SVN r1342 (trunk)
This commit is contained in:
parent
9098bc1a46
commit
ee8ce6c1e1
1 changed files with 4 additions and 1 deletions
|
@ -112,7 +112,10 @@ void I_EndRead(void)
|
||||||
// [RH] Returns time in milliseconds
|
// [RH] Returns time in milliseconds
|
||||||
unsigned int I_MSTime (void)
|
unsigned int I_MSTime (void)
|
||||||
{
|
{
|
||||||
return SDL_GetTicks ();
|
unsigned int time = SDL_GetTicks ();
|
||||||
|
if (!basetime)
|
||||||
|
basetime = time;
|
||||||
|
return time - basetime;
|
||||||
}
|
}
|
||||||
|
|
||||||
static DWORD TicStart;
|
static DWORD TicStart;
|
||||||
|
|
Loading…
Reference in a new issue