small fix

git-svn-id: https://clonekeenplus.svn.sourceforge.net/svnroot/clonekeenplus/cgenius/trunk@100 4df4b0f3-56ce-47cb-b001-ed939b7d65a6
This commit is contained in:
albertzeyer
2009-07-22 16:58:28 +00:00
parent 342d9ffab9
commit 60c6aa84da
2 changed files with 2 additions and 3 deletions

Binary file not shown.

View File

@@ -81,9 +81,8 @@ void CTimer::SpeedThrottle(void)
if( (ttime-ltime) < (tfreq/desiredfps) )
{
delay=(tfreq/desiredfps)-(ttime-ltime);
if(delay>0)
//SDL_Delay(delay/10000);
SDL_Delay(MAX(Uint32(delay>>14),Uint32(1)));
Uint32 d = delay >> 14;
if(d>0) SDL_Delay(d);
goto waiter;
}
if( (ttime-ltime) >= ((tfreq<<2)/desiredfps) )