potential fix for bug 312 : PlaceBuilding.ResolveOrder does not validate the requested build location
This commit is contained in:
committed by
Chris Forbes
parent
94f7c6db97
commit
1527e472b6
@@ -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 ),
|
||||
|
||||
Reference in New Issue
Block a user