mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
Fix: LBE layouts were broken since r7600 and always displayed all slots instead of those defined in LoadBearingEquipment.xml.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7631 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+1
-1
@@ -5555,7 +5555,7 @@ std::vector<UINT16> GetItemSlots(OBJECTTYPE* pObj, UINT8 subObject, BOOLEAN fAtt
|
|||||||
if( fItemSlots )
|
if( fItemSlots )
|
||||||
{
|
{
|
||||||
fItemLayout = Item[pObj->usItem].nasLayoutClass;
|
fItemLayout = Item[pObj->usItem].nasLayoutClass;
|
||||||
fIsLBE = (Item[pObj->usItem].usItemClass & IC_LBEGEAR);
|
fIsLBE = (Item[pObj->usItem].usItemClass == IC_LBEGEAR);
|
||||||
if ( Item[pObj->usItem].grenadelauncher || Item[pObj->usItem].rocketlauncher )
|
if ( Item[pObj->usItem].grenadelauncher || Item[pObj->usItem].rocketlauncher )
|
||||||
magSize = GetMagSize( pObj );
|
magSize = GetMagSize( pObj );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user