adjust Mobile so that it also can't double-add to uim

This commit is contained in:
Bob
2010-11-07 14:23:44 +13:00
parent 12f9c0bce9
commit fcb7c845ba

View File

@@ -289,12 +289,14 @@ namespace OpenRA.Mods.RA.Move
public void AddInfluence()
{
uim.Add( self, this );
if( self.IsInWorld )
uim.Add( self, this );
}
public void RemoveInfluence()
{
uim.Remove( self, this );
if( self.IsInWorld )
uim.Remove( self, this );
}
public void OnNudge(Actor self, Actor nudger)