mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
- bugfix: Filter buttons under used category
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1782 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -2187,6 +2187,8 @@ void SetFirstLastPagesForUsed(INT32 iFilter)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
bCntNumItems = FALSE;
|
||||||
|
|
||||||
// Get the weapon from the item
|
// Get the weapon from the item
|
||||||
usItemIndex = LaptopSaveInfo.BobbyRayUsedInventory[ i ].usItemIndex;
|
usItemIndex = LaptopSaveInfo.BobbyRayUsedInventory[ i ].usItemIndex;
|
||||||
|
|
||||||
@@ -3056,14 +3058,14 @@ void CalcFirstIndexForPage( STORE_INVENTORY *pInv, UINT32 uiItemClass )
|
|||||||
//Get to the first index on the page
|
//Get to the first index on the page
|
||||||
for(i=gusFirstItemIndex; i<=gusLastItemIndex; i++)
|
for(i=gusFirstItemIndex; i<=gusLastItemIndex; i++)
|
||||||
{
|
{
|
||||||
bCntItem = FALSE;
|
|
||||||
|
|
||||||
if (guiCurrentUsedFilterMode == -1)
|
if (guiCurrentUsedFilterMode == -1)
|
||||||
{
|
{
|
||||||
bCntItem = TRUE;
|
bCntItem = TRUE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
bCntItem = FALSE;
|
||||||
|
|
||||||
usItemIndex = pInv[ i ].usItemIndex;
|
usItemIndex = pInv[ i ].usItemIndex;
|
||||||
|
|
||||||
switch (guiCurrentUsedFilterMode)
|
switch (guiCurrentUsedFilterMode)
|
||||||
@@ -3128,8 +3130,6 @@ void CalcFirstIndexForPage( STORE_INVENTORY *pInv, UINT32 uiItemClass )
|
|||||||
//Get to the first index on the page
|
//Get to the first index on the page
|
||||||
for(i=gusFirstItemIndex; i<=gusLastItemIndex; i++)
|
for(i=gusFirstItemIndex; i<=gusLastItemIndex; i++)
|
||||||
{
|
{
|
||||||
bCntItem = FALSE;
|
|
||||||
|
|
||||||
if( Item[ pInv[ i ].usItemIndex ].usItemClass & uiItemClass )
|
if( Item[ pInv[ i ].usItemIndex ].usItemClass & uiItemClass )
|
||||||
{
|
{
|
||||||
if (uiItemClass == IC_BOBBY_GUN)
|
if (uiItemClass == IC_BOBBY_GUN)
|
||||||
@@ -3140,6 +3140,8 @@ void CalcFirstIndexForPage( STORE_INVENTORY *pInv, UINT32 uiItemClass )
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
bCntItem = FALSE;
|
||||||
|
|
||||||
usItemIndex = LaptopSaveInfo.BobbyRayInventory[ i ].usItemIndex;
|
usItemIndex = LaptopSaveInfo.BobbyRayInventory[ i ].usItemIndex;
|
||||||
|
|
||||||
if (Weapon[ Item[usItemIndex].ubClassIndex ].ubWeaponType == guiCurrentGunFilterMode)
|
if (Weapon[ Item[usItemIndex].ubClassIndex ].ubWeaponType == guiCurrentGunFilterMode)
|
||||||
|
|||||||
Reference in New Issue
Block a user