Remove building lock from Transforms.
This commit is contained in:
@@ -56,8 +56,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
|
||||
// Prevent deployment in bogus locations
|
||||
var transforms = self.TraitOrDefault<Transforms>();
|
||||
var building = self.TraitOrDefault<Building>();
|
||||
if ((transforms != null && !transforms.CanDeploy()) || (building != null && !building.Lock()))
|
||||
if (transforms != null && !transforms.CanDeploy())
|
||||
{
|
||||
Cancel(self, true);
|
||||
return NextActivity;
|
||||
|
||||
Reference in New Issue
Block a user