mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +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:
+1
-1
@@ -2308,7 +2308,7 @@ BOOLEAN ValidItemAttachmentSlot( OBJECTTYPE * pObj, UINT16 usAttachment, BOOLEAN
|
||||
ubSlotIndex = usAttachmentSlotIndexVector[slotCount];
|
||||
|
||||
//WarmSteel - does this particular slot already hold an item? :( If we have a pAttachInSlot we're trying to switch, so then it doesn't matter.
|
||||
if(!fIgnoreAttachmentInSlot && pAttachment->exists() && fAttemptingAttachment && (!ppAttachInSlot || Item[pAttachment->usItem].inseparable)){
|
||||
if(!fIgnoreAttachmentInSlot && pAttachment->exists() && fAttemptingAttachment && (!ppAttachInSlot || Item[pAttachment->usItem].inseparable == 1)){
|
||||
//If we have a parameter to return pAttachment to, store it, else the item does not attach to this slot.
|
||||
fSimilarItems = TRUE;
|
||||
usSimilarItem = pAttachment->usItem;
|
||||
|
||||
Reference in New Issue
Block a user