- Added one to return value of SDL_GetTicks() to ensure non-zeroness.

SVN r1288 (trunk)
This commit is contained in:
Randy Heit 2008-11-14 23:16:21 +00:00
parent 183b765cf2
commit 9430001425

View file

@ -131,7 +131,7 @@ int I_GetTimePolled (bool saveMS)
return TicFrozen; return TicFrozen;
} }
DWORD tm = SDL_GetTicks (); DWORD tm = SDL_GetTicks() + 1; // Make sure this isn't 0.
if (BaseTime == 0) if (BaseTime == 0)
{ {
BaseTime = tm; BaseTime = tm;