Kill Controller

This commit is contained in:
Paul Chote
2010-07-25 19:21:53 +12:00
parent e677be7908
commit 305fa03355
31 changed files with 208 additions and 234 deletions

View File

@@ -40,7 +40,7 @@ namespace OpenRA.Mods.RA.Activities
self.World.AddFrameEndTask(w =>
{
var selected = Game.controller.selection.Contains(self);
var selected = w.Selection.Contains(self);
self.World.Remove(self);
foreach (var s in sounds)
@@ -50,7 +50,7 @@ namespace OpenRA.Mods.RA.Activities
a.Health = GetHealthToTransfer(self, a, transferPercentage);
if (selected)
Game.controller.selection.Add(w, a);
w.Selection.Add(w, a);
});
return this;
}