mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Inseparable boolean field for items changed to UINT8
0 = removable (as before) 1 = inseparable (as before) 2+ = replaceable = inseparable, but can be replaced by a similar item git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5247 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -5733,7 +5733,7 @@ void ItemDescAttachmentsCallback( MOUSE_REGION * pRegion, INT32 iReason )
|
||||
if ( !gpItemPointerSoldier || EnoughPoints( gpItemPointerSoldier, AttachmentAPCost( gpItemPointer->usItem, gpItemDescObject, gpItemPointerSoldier ), 0, TRUE ) )
|
||||
{
|
||||
// if ( (Item[ gpItemPointer->usItem ].fFlags & ITEM_INSEPARABLE) && ValidAttachment( gpItemPointer->usItem, gpItemDescObject->usItem ) )
|
||||
if ( (Item[ gpItemPointer->usItem ].inseparable ) && ValidAttachment( gpItemPointer->usItem, gpItemDescObject ) )
|
||||
if ( (Item[ gpItemPointer->usItem ].inseparable == 1) && ValidAttachment( gpItemPointer->usItem, gpItemDescObject ) )
|
||||
{
|
||||
iItemPosition = uiItemPos;
|
||||
gbMessageBoxSubObject = (UINT8)ubStatusIndex;
|
||||
|
||||
Reference in New Issue
Block a user