mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
BUGZILLA #556: Fixed CTD if enemy bleeds to death at the end of a players turn
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@4597 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -3347,9 +3347,9 @@ BOOLEAN HandleSoldierDeath( SOLDIERTYPE *pSoldier , BOOLEAN *pfMadeCorpse )
|
|||||||
}
|
}
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
// WANNE: This should fix crash in a MP game, when someone quits playing
|
// WANNE: This should fix crash that could occur if enemy bleeds to death
|
||||||
if ( (is_networked && pSoldier->ubAttackerID < 254) || !is_networked )
|
if ( pSoldier->ubAttackerID < 254 )
|
||||||
{
|
{
|
||||||
// IF this guy has an attacker and he's a good guy, play sound
|
// IF this guy has an attacker and he's a good guy, play sound
|
||||||
if ( ubAttacker != NOBODY )
|
if ( ubAttacker != NOBODY )
|
||||||
|
|||||||
Reference in New Issue
Block a user