some Network changes.

This commit is contained in:
Bob
2010-01-23 16:08:36 +13:00
parent f1e0b46d38
commit 3bb40f7d0e
21 changed files with 282 additions and 363 deletions

View File

@@ -22,7 +22,7 @@ namespace OpenRa.SupportPowers
// Play chronosphere active anim
var chronosphere = target.World.Actors.Where(a => a.Owner == p.Owner && a.traits.Contains<Chronosphere>()).FirstOrDefault();
if (chronosphere != null)
Game.controller.AddOrder(Order.PlayAnimation(chronosphere, "active"));
Game.orderManager.IssueOrder(Order.PlayAnimation(chronosphere, "active"));
// Trigger screen desaturate effect
foreach (var a in target.World.Actors.Where(a => a.traits.Contains<ChronoshiftPaletteEffect>()))

View File

@@ -29,7 +29,7 @@ namespace OpenRa.SupportPowers
.Where(a => a.Owner == p.Owner && a.traits.Contains<IronCurtain>())
.FirstOrDefault();
if (ironCurtain != null)
Game.controller.AddOrder(Order.PlayAnimation(ironCurtain, "active"));
Game.orderManager.IssueOrder(Order.PlayAnimation(ironCurtain, "active"));
}
SupportPower p;