potential fix for bug 312 : PlaceBuilding.ResolveOrder does not validate the requested build location

This commit is contained in:
Caleb Anderson
2010-10-26 22:21:16 -05:00
committed by Chris Forbes
parent 94f7c6db97
commit 1527e472b6

View File

@@ -61,6 +61,11 @@ namespace OpenRA.Mods.RA
}
else
{
if (!self.World.CanPlaceBuilding(order.TargetString, buildingInfo, order.TargetLocation, null))
{
return;
}
var building = w.CreateActor(order.TargetString, new TypeDictionary
{
new LocationInit( order.TargetLocation ),