mirror of
https://github.com/1dot13/source.git
synced 2026-09-16 14:47:17 +02:00
Fix: attaching guns to tripwire.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9027 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+4
-2
@@ -2294,8 +2294,10 @@ BOOLEAN ValidAttachment( UINT16 usAttachment, OBJECTTYPE * pObj, UINT8 * pubAPCo
|
|||||||
if ( !pObj->exists() )
|
if ( !pObj->exists() )
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
// shadooow: efficiency check, we are passing all kinds of items into this function that are not neccessary attachments at all
|
// shadooow: efficiency check, we are passing all kinds of items into this function that are not necessary attachments at all
|
||||||
if (!Item[usAttachment].attachment && !Item[usAttachment].hiddenaddon)
|
if (!Item[usAttachment].attachment &&
|
||||||
|
!Item[usAttachment].hiddenaddon &&
|
||||||
|
!((Item[usAttachment].usItemClass & IC_GUN) && Item[pObj->usItem].tripwire))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if( UsingNewAttachmentSystem() )
|
if( UsingNewAttachmentSystem() )
|
||||||
|
|||||||
Reference in New Issue
Block a user