mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
- Added AndroidXP fixes for Sniper Deadlock and Grenade AP loss
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@797 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -9391,6 +9391,14 @@ void HaultSoldierFromSighting( SOLDIERTYPE *pSoldier, BOOLEAN fFromSightingEnemy
|
||||
{
|
||||
// Place it back into inv....
|
||||
AutoPlaceObject( pSoldier, pSoldier->pTempObject, FALSE );
|
||||
|
||||
//AXP 25.03.2007: Not needed anymore, grenade costs are only deducted on throwing the object
|
||||
//AXP 24.03.2007: Give APs back if we wanted to throw grenade, but interrupt/spotting occured
|
||||
//if ( pSoldier->pThrowParams->ubActionCode == THROW_ARM_ITEM )
|
||||
//{
|
||||
// DeductPoints( pSoldier, -MinAPsToAttack( pSoldier, pSoldier->sTargetGridNo, FALSE ), 0 );
|
||||
//}
|
||||
|
||||
MemFree( pSoldier->pTempObject );
|
||||
pSoldier->pTempObject = NULL;
|
||||
pSoldier->usPendingAnimation = NO_PENDING_ANIMATION;
|
||||
|
||||
Reference in New Issue
Block a user