mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 15:22:16 +00:00
- fixed r1342 changes
SVN r1345 (trunk)
This commit is contained in:
parent
7fde758e26
commit
aa5bdd0884
1 changed files with 9 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue