mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-18 10:11:11 +00:00
SVN r1366 (trunk)
This commit is contained in:
parent
ca80217b39
commit
b6528a604e
2 changed files with 5 additions and 7 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
January 24, 2009
|
||||||
|
- Removed BaseTime initialization from sdl/i_system.cpp as per Chris's
|
||||||
|
recommendation.
|
||||||
|
|
||||||
January 24, 2009 (Changes by Graf Zahl)
|
January 24, 2009 (Changes by Graf Zahl)
|
||||||
- Fixed: The sight checking code didn't initialize the myseethrough variable.
|
- Fixed: The sight checking code didn't initialize the myseethrough variable.
|
||||||
- Fixed: With COMPAT_TRACE switched on linedef actions on lines having
|
- Fixed: With COMPAT_TRACE switched on linedef actions on lines having
|
||||||
|
|
|
@ -119,8 +119,6 @@ static int TicFrozen;
|
||||||
unsigned int I_MSTime (void)
|
unsigned int I_MSTime (void)
|
||||||
{
|
{
|
||||||
unsigned int time = SDL_GetTicks ();
|
unsigned int time = SDL_GetTicks ();
|
||||||
if (!BaseTime)
|
|
||||||
BaseTime = time;
|
|
||||||
return time - BaseTime;
|
return time - BaseTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -135,11 +133,7 @@ int I_GetTimePolled (bool saveMS)
|
||||||
return TicFrozen;
|
return TicFrozen;
|
||||||
}
|
}
|
||||||
|
|
||||||
DWORD tm = SDL_GetTicks() + 1; // Make sure this isn't 0.
|
DWORD tm = SDL_GetTicks();
|
||||||
if (BaseTime == 0)
|
|
||||||
{
|
|
||||||
BaseTime = tm;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (saveMS)
|
if (saveMS)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue