mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
Fix: if a cow dies from gas, no corpse is created
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9133 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -4536,6 +4536,12 @@ BOOLEAN CheckForAndHandleSoldierDyingNotFromHit( SOLDIERTYPE *pSoldier )
|
||||
else if(pSoldier->bTeam <6 && ((gTacticalStatus.ubTopMessageType == PLAYER_TURN_MESSAGE) || (gTacticalStatus.ubTopMessageType == PLAYER_INTERRUPT_MESSAGE)))send_death(pSoldier);
|
||||
else if (pSoldier->bTeam < 6 && (is_server)) send_death(pSoldier);
|
||||
}
|
||||
|
||||
// Flugente: cows only have one death animation. If we're not in the proper aniamtion, enforce it, otherwise the corpse isn't created
|
||||
if ( pSoldier->ubBodyType == COW
|
||||
&& pSoldier->usAnimState != COW_HIT )
|
||||
pSoldier->ChangeSoldierState( COW_DYING, 0, FALSE );
|
||||
|
||||
if ( gGameSettings.fOptions[ TOPTION_BLOOD_N_GORE ] )
|
||||
{
|
||||
switch( pSoldier->usAnimState )
|
||||
|
||||
Reference in New Issue
Block a user