mirror of
https://github.com/1dot13/source.git
synced 2026-09-16 14:47:17 +02:00
Missing part of previous fix (by Shadooow).
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9022 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -3840,7 +3840,7 @@ BOOLEAN UseBlade( SOLDIERTYPE *pSoldier , INT32 sTargetGridNo )
|
|||||||
BOOLEAN fSurpriseAttack;
|
BOOLEAN fSurpriseAttack;
|
||||||
|
|
||||||
// Deduct points!
|
// Deduct points!
|
||||||
sAPCost = CalcTotalAPsToAttack( pSoldier, sTargetGridNo, FALSE, pSoldier->aiData.bAimTime );
|
sAPCost = CalcTotalAPsToAttack( pSoldier, sTargetGridNo, FALSE, (pSoldier->aiData.bAimTime / 2) );
|
||||||
|
|
||||||
DeductPoints( pSoldier, sAPCost, 0, AFTERACTION_INTERRUPT );
|
DeductPoints( pSoldier, sAPCost, 0, AFTERACTION_INTERRUPT );
|
||||||
|
|
||||||
@@ -4067,7 +4067,7 @@ BOOLEAN UseHandToHand( SOLDIERTYPE *pSoldier, INT32 sTargetGridNo, BOOLEAN fStea
|
|||||||
// Punch the enemy
|
// Punch the enemy
|
||||||
if (!fStealing)
|
if (!fStealing)
|
||||||
{
|
{
|
||||||
sAPCost = CalcTotalAPsToAttack( pSoldier, sTargetGridNo, FALSE, pSoldier->aiData.bAimTime );
|
sAPCost = CalcTotalAPsToAttack( pSoldier, sTargetGridNo, FALSE, (pSoldier->aiData.bAimTime / 2));
|
||||||
DeductPoints( pSoldier, sAPCost, 0, AFTERACTION_INTERRUPT );
|
DeductPoints( pSoldier, sAPCost, 0, AFTERACTION_INTERRUPT );
|
||||||
}
|
}
|
||||||
// Steal from the enemy
|
// Steal from the enemy
|
||||||
|
|||||||
Reference in New Issue
Block a user