remove ref to Game.world in Move

This commit is contained in:
Bob
2010-10-12 02:06:05 +13:00
parent 6bbf878314
commit 09db76f89f
2 changed files with 15 additions and 20 deletions

View File

@@ -101,6 +101,10 @@ namespace OpenRA.Traits
}
UnitInfluence uim;
const int avgTicksBeforePathing = 5;
const int spreadTicksBeforePathing = 5;
internal int ticksBeforePathing = 0;
public Mobile(ActorInitializer init, MobileInfo info)
{
@@ -185,6 +189,8 @@ namespace OpenRA.Traits
if (line != null)
line.SetTarget(self, Target.FromCell(currentLocation), Color.Green);
});
ticksBeforePathing = avgTicksBeforePathing +
self.World.SharedRandom.Next( -spreadTicksBeforePathing, spreadTicksBeforePathing );
}
}