From d10daf6da36df3bb5703d540849a24c7c7bdbe86 Mon Sep 17 00:00:00 2001 From: MaddMugsy Date: Tue, 4 Jul 2006 00:28:47 +0000 Subject: [PATCH] -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 --- Tactical/Handle UI.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Tactical/Handle UI.cpp b/Tactical/Handle UI.cpp index 3201ee1f..35dfeea4 100644 --- a/Tactical/Handle UI.cpp +++ b/Tactical/Handle UI.cpp @@ -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 ); }