From 79c41c3dbe9623f956d9fd2ce6518d1983c2c78f Mon Sep 17 00:00:00 2001 From: Flugente Date: Sat, 18 Aug 2018 14:12:54 +0000 Subject: [PATCH] Fix: throwing knives disappear when hitting corpses git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8596 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Tactical/LOS.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Tactical/LOS.cpp b/Tactical/LOS.cpp index 9ca95156..31947584 100644 --- a/Tactical/LOS.cpp +++ b/Tactical/LOS.cpp @@ -7199,10 +7199,10 @@ void MoveBullet( INT32 iBullet ) CorpseHit( pBullet->sGridNo, level, pStructure->usStructureID ); DebugMsg( TOPIC_JA2, DBG_LEVEL_3, String("@@@@@@@ Reducing attacker busy count..., CORPSE HIT") ); - - // Moved here to keep ABC >0 as long as possible - RemoveBullet( iBullet ); - // ReduceAttackBusyCount( ); + + // Flugente: we need to call BulletHitStructure, otherwise knives vanish + StopBullet( pBullet->iBullet ); + BulletHitStructure( pBullet, pStructure->usStructureID, 1, pBullet->qCurrX, pBullet->qCurrY, pBullet->qCurrZ, TRUE ); return; } else if ( iRemainingImpact <= 0 )