Remove ActorExtensionsForMove

And use IMove.IsMoving instead.
This commit is contained in:
reaperrr
2016-05-17 01:02:44 +02:00
parent 916f2ea2ea
commit 099c44f6f9
3 changed files with 4 additions and 21 deletions

View File

@@ -825,7 +825,8 @@ namespace OpenRA.Mods.Common.AI
foreach (var mcv in mcvs)
{
if (mcv.IsMoving())
var mover = mcv.TraitOrDefault<IMove>();
if (mover != null && mover.IsMoving)
continue;
var factType = mcv.Info.TraitInfo<TransformsInfo>().IntoActor;