From 78087707d101c5b27ecea410bd983d9f9a93f7f9 Mon Sep 17 00:00:00 2001 From: Flugente Date: Thu, 8 Jul 2021 19:53:44 +0000 Subject: [PATCH] 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 --- Tactical/Soldier Ani.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Tactical/Soldier Ani.cpp b/Tactical/Soldier Ani.cpp index 60b6a00b6..c70971cdc 100644 --- a/Tactical/Soldier Ani.cpp +++ b/Tactical/Soldier Ani.cpp @@ -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 )