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

@@ -52,7 +52,7 @@ namespace OpenRA.Orders
if (!world.CanPlaceBuilding( Building, BuildingInfo, topLeft, null)
|| !world.IsCloseEnoughToBase(Producer.Owner, Building, BuildingInfo, topLeft))
{
var eva = world.LocalPlayer.PlayerActor.Info.Traits.Get<EvaAlertsInfo>();
var eva = world.WorldActor.Info.Traits.Get<EvaAlertsInfo>();
Sound.Play(eva.BuildingCannotPlaceAudio);
yield break;
}