another improvement. it runs, too!
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user