fix linebuild bugs (2/2)

This commit is contained in:
Chris Forbes
2010-04-04 14:10:36 +12:00
parent 85010834de
commit 8cf2b75f94

View File

@@ -45,7 +45,7 @@ namespace OpenRA.Traits
var buildingInfo = unit.Traits.Get<BuildingInfo>();
foreach( var t in LineBuildUtils.GetLineBuildCells( self.World, order.TargetLocation, order.TargetString, buildingInfo ) )
{
var building = self.World.CreateActor( order.TargetString, order.TargetLocation, order.Player );
var building = self.World.CreateActor( order.TargetString, t, order.Player );
if( playSounds )
foreach( var s in building.Info.Traits.Get<BuildingInfo>().BuildSounds )
Sound.PlayToPlayer( order.Player, s );