mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
-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:
@@ -1211,18 +1211,20 @@ UINT32 UIHandleTestHit( UI_EVENT *pUIEvent )
|
|||||||
{
|
{
|
||||||
if ( Random(2) )
|
if ( Random(2) )
|
||||||
{
|
{
|
||||||
bDamage = 20;
|
bDamage = 80; // was 20
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
bDamage = 25;
|
bDamage = 100; // was 25
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
gTacticalStatus.ubAttackBusyCount++;
|
gTacticalStatus.ubAttackBusyCount++;
|
||||||
|
// marke new call without gun ID
|
||||||
EVENT_SoldierGotHit( pSoldier, 1, bDamage, 10, pSoldier->bDirection, 320, NOBODY , FIRE_WEAPON_NO_SPECIAL, pSoldier->bAimShotLocation, 0, NOWHERE );
|
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 );
|
return( GAME_SCREEN );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user