show no-deploy cursor if locked

This commit is contained in:
Chris Forbes
2012-09-13 07:27:15 +12:00
parent 5ad2d1892f
commit 8680405b68

View File

@@ -48,6 +48,10 @@ namespace OpenRA.Mods.RA
bool CanDeploy()
{
var b = self.TraitOrDefault<Building>();
if (b != null && b.Locked)
return false;
return (bi == null || self.World.CanPlaceBuilding(Info.IntoActor, bi, self.Location + (CVec)Info.Offset, self));
}