Fix subcell crushing properly.

This commit is contained in:
Paul Chote
2011-02-05 08:47:53 +13:00
parent 639a7e316b
commit afcb724793
3 changed files with 39 additions and 31 deletions

View File

@@ -229,7 +229,7 @@ namespace OpenRA.Mods.RA.Move
hasWaited = false;
path.RemoveAt( path.Count - 1 );
var subCell = self.World.WorldActor.Trait<UnitInfluence>().GetFreeSubcell(nextCell, mobile.__fromSubCell);
var subCell = mobile.GetDesiredSubcell(nextCell);
return Pair.New(nextCell, subCell);
}