mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
- bugfix: Bobby Rays filter buttons (again). Now it should work
- bugfix: Hand to hand combat (knifes, claws, ...) was disabled in auto battle. This was done in revision 51 because of CTDs that always occured there. I enabled hand to hand combat and tested ~50 auto battles. No single CTD. It seems that the CTD has been fixed since revision 51. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1788 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -3058,14 +3058,14 @@ void CalcFirstIndexForPage( STORE_INVENTORY *pInv, UINT32 uiItemClass )
|
||||
//Get to the first index on the page
|
||||
for(i=gusFirstItemIndex; i<=gusLastItemIndex; i++)
|
||||
{
|
||||
bCntItem = FALSE;
|
||||
|
||||
if (guiCurrentUsedFilterMode == -1)
|
||||
{
|
||||
bCntItem = TRUE;
|
||||
}
|
||||
else
|
||||
{
|
||||
bCntItem = FALSE;
|
||||
|
||||
usItemIndex = pInv[ i ].usItemIndex;
|
||||
|
||||
switch (guiCurrentUsedFilterMode)
|
||||
@@ -3130,6 +3130,8 @@ void CalcFirstIndexForPage( STORE_INVENTORY *pInv, UINT32 uiItemClass )
|
||||
//Get to the first index on the page
|
||||
for(i=gusFirstItemIndex; i<=gusLastItemIndex; i++)
|
||||
{
|
||||
bCntItem = FALSE;
|
||||
|
||||
if( Item[ pInv[ i ].usItemIndex ].usItemClass & uiItemClass )
|
||||
{
|
||||
if (uiItemClass == IC_BOBBY_GUN)
|
||||
@@ -3140,8 +3142,6 @@ void CalcFirstIndexForPage( STORE_INVENTORY *pInv, UINT32 uiItemClass )
|
||||
}
|
||||
else
|
||||
{
|
||||
bCntItem = FALSE;
|
||||
|
||||
usItemIndex = LaptopSaveInfo.BobbyRayInventory[ i ].usItemIndex;
|
||||
|
||||
if (Weapon[ Item[usItemIndex].ubClassIndex ].ubWeaponType == guiCurrentGunFilterMode)
|
||||
|
||||
Reference in New Issue
Block a user