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

@@ -27,12 +27,12 @@ namespace OpenRa.Game
public void Remove( Actor a ) { actors.Remove( a ); }
public void AddFrameEndTask( Action<World> a ) { frameEndActions.Add( a ); }
double lastTime = Environment.TickCount / 1000.0;
int lastTime = Environment.TickCount;
void Draw( Game game )
{
double t = Environment.TickCount / 1000.0;
double dt = t - lastTime;
int t = Environment.TickCount;
int dt = t - lastTime;
lastTime = t;
Range<float2> range = new Range<float2>(viewport.Location, viewport.Location + viewport.Size);