From f47c7e8f3fd1cee59cc7aa23ea7791596ef8d23a Mon Sep 17 00:00:00 2001 From: Shadooow Date: Thu, 24 Jun 2021 20:30:51 +0000 Subject: [PATCH] fixed snake attacks not initiating damage/death animations and not decreasing number of enemies in sector properly git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9104 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- TileEngine/environment.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TileEngine/environment.cpp b/TileEngine/environment.cpp index 3543ba99..b3650af6 100644 --- a/TileEngine/environment.cpp +++ b/TileEngine/environment.cpp @@ -1154,7 +1154,7 @@ void HandleEnvironmentHazard( ) { INT16 damage = 10 + Random( 11 ); - pSoldier->SoldierTakeDamage( 0, damage, damage * 100, TAKE_DAMAGE_TENTACLES, NOBODY, pSoldier->sGridNo, 0, TRUE ); + pSoldier->EVENT_SoldierGotHit(47, damage, damage * 100, pSoldier->ubDirection, 0, NOBODY, FIRE_WEAPON_NO_SPECIAL, AIM_SHOT_LEGS, 0, pSoldier->sGridNo); // if this is a swamp, handle possible extra infection if ( ubTraverseType == SWAMP || ubTraverseType == SWAMP_ROAD )