moved EvaAlerts from player to world

This commit is contained in:
Chris Forbes
2010-03-17 19:47:52 +13:00
parent ed2e70eb9c
commit f351285246
11 changed files with 39 additions and 39 deletions

View File

@@ -138,7 +138,7 @@ namespace OpenRA.Traits
}
isPrimary = true;
var eva = self.Owner.PlayerActor.Info.Traits.Get<EvaAlertsInfo>();
var eva = self.World.WorldActor.Info.Traits.Get<EvaAlertsInfo>();
Sound.PlayToPlayer(self.Owner,eva.PrimaryBuildingSelected);
}
}