Remove building lock from Transforms.

This commit is contained in:
Paul Chote
2018-10-27 17:17:23 +01:00
committed by abcdefg30
parent 18b84750aa
commit 492bcdd9a7
6 changed files with 6 additions and 10 deletions

View File

@@ -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;