mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
100AP project integration
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2402 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -67,7 +67,7 @@ BOOLEAN AddUIPlan( INT16 sGridNo, UINT8 ubPlanID )
|
||||
// Adjust for running if we are not already running
|
||||
if ( gpUIPlannedSoldier->usUIMovementMode == RUNNING )
|
||||
{
|
||||
sAPCost += AP_START_RUN_COST;
|
||||
sAPCost += APBPConstants[AP_START_RUN_COST];
|
||||
}
|
||||
|
||||
if ( EnoughPoints( gpUIPlannedSoldier, sAPCost, 0, FALSE ) )
|
||||
@@ -142,7 +142,7 @@ BOOLEAN AddUIPlan( INT16 sGridNo, UINT8 ubPlanID )
|
||||
}
|
||||
else if ( ubPlanID == UIPLAN_ACTION_FIRE )
|
||||
{
|
||||
sAPCost = CalcTotalAPsToAttack( gpUIPlannedSoldier, sGridNo, TRUE, (INT8)(gpUIPlannedSoldier->aiData.bShownAimTime ) );
|
||||
sAPCost = CalcTotalAPsToAttack( gpUIPlannedSoldier, sGridNo, TRUE, (INT16)(gpUIPlannedSoldier->aiData.bShownAimTime ) );
|
||||
|
||||
// Get XY from Gridno
|
||||
ConvertGridNoToCenterCellXY( sGridNo, &sXPos, &sYPos );
|
||||
|
||||
Reference in New Issue
Block a user