-minor testhit crash fix from Callahan, when pressing ctrl-h

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@326 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
MaddMugsy
2006-07-04 00:28:47 +00:00
parent d091bb09f1
commit d10daf6da3
+7 -5
View File
@@ -1211,18 +1211,20 @@ UINT32 UIHandleTestHit( UI_EVENT *pUIEvent )
{
if ( Random(2) )
{
bDamage = 20;
bDamage = 80; // was 20
}
else
{
bDamage = 25;
bDamage = 100; // was 25
}
}
gTacticalStatus.ubAttackBusyCount++;
EVENT_SoldierGotHit( pSoldier, 1, bDamage, 10, pSoldier->bDirection, 320, NOBODY , FIRE_WEAPON_NO_SPECIAL, pSoldier->bAimShotLocation, 0, NOWHERE );
gTacticalStatus.ubAttackBusyCount++;
// marke new call without gun ID
EVENT_SoldierGotHit( pSoldier, 0, bDamage, 0, pSoldier->bDirection, 320, NOBODY , FIRE_WEAPON_NO_SPECIAL, pSoldier->bAimShotLocation, 0, NOWHERE );
// marke lined out old call
// EVENT_SoldierGotHit( pSoldier, 1, bDamage, 10, pSoldier->bDirection, 320, NOBODY , FIRE_WEAPON_NO_SPECIAL, pSoldier->bAimShotLocation, 0, NOWHERE );
}
return( GAME_SCREEN );
}