mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
FixFix: non-merc planted explosives that fire fragments caused crashes. A few functions had to be fixed.
Note: keep in mind that we cannot assume that BULLET's pFirer will be valid. Check wether ubFirerID is NOBODY first. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6776 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -152,7 +152,11 @@ void HandleBulletSpecialFlags( INT32 iBulletIndex )
|
||||
else if ( pBullet->usFlags & ( BULLET_FLAG_KNIFE ) )
|
||||
{
|
||||
strcpy( AniParams.zCachedFile, "TILECACHE\\KNIFING.STI" );
|
||||
pBullet->ubItemStatus = pBullet->pFirer->inv[ HANDPOS ][0]->data.objectStatus;
|
||||
|
||||
if ( pBullet->ubFirerID != NOBODY )
|
||||
pBullet->ubItemStatus = pBullet->pFirer->inv[ HANDPOS ][0]->data.objectStatus;
|
||||
else
|
||||
pBullet->ubItemStatus = 100;
|
||||
}
|
||||
|
||||
// Get direction to use for this guy....
|
||||
|
||||
Reference in New Issue
Block a user