mirror of
https://github.com/1dot13/source.git
synced 2026-08-26 14:30:26 +02:00
Fixed APs to start running being charged twice.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9306 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -2774,14 +2774,6 @@ INT8 PtsToMoveDirection(SOLDIERTYPE *pSoldier, INT8 bDirection )
|
|||||||
|
|
||||||
sCost = ActionPointCost( pSoldier, sGridNo, bDirection , usMoveModeToUse );
|
sCost = ActionPointCost( pSoldier, sGridNo, bDirection , usMoveModeToUse );
|
||||||
|
|
||||||
if ( gubWorldMovementCosts[ sGridNo ][ bDirection ][ pSoldier->pathing.bLevel ] != TRAVELCOST_FENCE )
|
|
||||||
{
|
|
||||||
if ( usMoveModeToUse == RUNNING && pSoldier->usAnimState != RUNNING )
|
|
||||||
{
|
|
||||||
sCost += GetAPsStartRun( pSoldier ); // changed by SANDRO
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return( (INT8)sCost );
|
return( (INT8)sCost );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user