Shift movement cost/speed into IMove; regressions in a few areas
This commit is contained in:
@@ -227,8 +227,7 @@ namespace OpenRA.Traits.Activities
|
||||
|
||||
public void TickMove( Actor self, Mobile mobile, Move parent )
|
||||
{
|
||||
var umt = self.Info.Traits.Get<MobileInfo>().MovementType;
|
||||
moveFraction += (int)Util.GetEffectiveSpeed(self, umt);
|
||||
moveFraction += (int)mobile.MovementSpeedForCell(self, self.Location);
|
||||
if( moveFraction >= moveFractionTotal )
|
||||
moveFraction = moveFractionTotal;
|
||||
UpdateCenterLocation( self, mobile );
|
||||
|
||||
Reference in New Issue
Block a user