show no-deploy cursor if locked
This commit is contained in:
@@ -48,6 +48,10 @@ namespace OpenRA.Mods.RA
|
|||||||
|
|
||||||
bool CanDeploy()
|
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));
|
return (bi == null || self.World.CanPlaceBuilding(Info.IntoActor, bi, self.Location + (CVec)Info.Offset, self));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user