git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1329 993157c7-ee19-0410-b2c4-bb4e9862e678

This commit is contained in:
(no author)
2007-07-23 12:15:42 +00:00
parent c8a81ffce4
commit d94b589650
8 changed files with 30 additions and 20 deletions

View File

@@ -59,10 +59,10 @@ namespace OpenRa.Game
};
}
double timeUntilNextFrame;
int timeUntilNextFrame;
Action<double> tickFunc;
public void Tick( double t )
Action<int> tickFunc;
public void Tick( int t )
{
if( tickAlways )
tickFunc( t );
@@ -71,8 +71,8 @@ namespace OpenRa.Game
timeUntilNextFrame -= t;
while( timeUntilNextFrame <= 0 )
{
tickFunc( 40.0 / 1000.0 );
timeUntilNextFrame += ( 40.0 / 1000.0 ); // 25 fps == 40 ms
tickFunc( 40 );
timeUntilNextFrame += 40; // 25 fps == 40 ms
}
}
}