fixes #37: phantom units

This commit is contained in:
Chris Forbes
2009-10-23 21:45:28 +13:00
parent 7f1e881c47
commit 5082d9abdd
3 changed files with 9 additions and 6 deletions

View File

@@ -13,7 +13,7 @@ namespace OpenRa.Game
int lastTime = Environment.TickCount;
const int timestep = 40;
public void Add(Actor a) { actors.Add(a); ActorAdded(a); }
public void Add(Actor a) { actors.Add(a); ActorAdded(a); }
public void Remove(Actor a) { actors.Remove(a); ActorRemoved(a); }
public void Add(IEffect b) { effects.Add(b); }
@@ -21,8 +21,8 @@ namespace OpenRa.Game
public void AddFrameEndTask( Action<World> a ) { frameEndActions.Add( a ); }
public event Action<Actor> ActorAdded = _ => { };
public event Action<Actor> ActorRemoved = _ => { };
public event Action<Actor> ActorAdded = _ => { };
public event Action<Actor> ActorRemoved = a => { a.Health = 0; }; /* make sure everyone sees it as dead */
public void ResetTimer()
{