another improvement. it runs, too!

This commit is contained in:
Chris Forbes
2009-10-12 21:29:49 +13:00
parent 711b419ed0
commit e255a48645
3 changed files with 24 additions and 8 deletions

View File

@@ -9,8 +9,9 @@ namespace OpenRa.Game
{
List<Actor> actors = new List<Actor>();
List<Action<World>> frameEndActions = new List<Action<World>>();
public readonly Game game;
readonly Game game;
int lastTime = Environment.TickCount;
const int timestep = 40;
public World(Game game) { this.game = game; }
@@ -18,10 +19,6 @@ namespace OpenRa.Game
public void Remove( Actor a ) { actors.Remove( a ); }
public void AddFrameEndTask( Action<World> a ) { frameEndActions.Add( a ); }
int lastTime = Environment.TickCount;
const int timestep = 40;
public void Update()
{
int t = Environment.TickCount;