CanPlaceBuilding always takes topleft (instead of topleft when !adjust)

This commit is contained in:
Bob
2010-01-18 14:25:59 +13:00
parent 738d293b48
commit 4f60b2866b
4 changed files with 4 additions and 5 deletions

View File

@@ -70,7 +70,7 @@ namespace OpenRa.Orders
return Cursor.MoveBlocked;
case "DeployMcv":
var factBuildingInfo = Rules.ActorInfo["fact"].Traits.Get<BuildingInfo>();
if (Game.world.CanPlaceBuilding("fact", factBuildingInfo, a.Location - new int2(1, 1), a, false))
if (Game.world.CanPlaceBuilding("fact", factBuildingInfo, a.Location - new int2(1, 1), a))
return Cursor.Deploy;
else
return Cursor.DeployBlocked;