remove setters on Mobile.{from,to}Cell. use SetLocation instead

This commit is contained in:
Bob
2010-10-08 18:26:29 +13:00
committed by Chris Forbes
parent 99d92ee095
commit 9c362f7d41
2 changed files with 5 additions and 8 deletions

View File

@@ -85,20 +85,18 @@ namespace OpenRA.Traits
public int2 fromCell
{
get { return __fromCell; }
set { SetLocation( value, __toCell ); }
}
[Sync]
public int2 toCell
{
get { return __toCell; }
set { SetLocation( __fromCell, value ); }
}
[Sync]
public int PathHash; // written by Move.EvalPath, to temporarily debug this crap.
void SetLocation(int2 from, int2 to)
public void SetLocation(int2 from, int2 to)
{
if (fromCell == from && toCell == to) return;
RemoveInfluence();