mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
Bugfix: Removed the ability to manually jump fences while wearing a backpack.
Bugfix: Force shopkeepers to drop LBENODE items to the ground instead of trying to return them to the soldier during a sale. This keeps items in the LBENODE from being lost. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2472 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -7125,6 +7125,13 @@ void ReturnItemToPlayerSomehow( INVENTORY_IN_SLOT *pInvSlot, SOLDIERTYPE *pDropS
|
||||
ShopkeeperAddItemToPool( pDropSoldier->sGridNo, &pInvSlot->ItemObject, VISIBLE, pDropSoldier->pathing.bLevel, 0, 0 );
|
||||
}
|
||||
}
|
||||
//CHRISL: We need to handle LBENODE items a little differently so we don't lose anything stored in them. Instead of
|
||||
// trying to return the item, simply drop the item to the ground.
|
||||
if(UsingNewInventorySystem() == true && pInvSlot->ItemObject.IsActiveLBE(0) == true)
|
||||
{
|
||||
pDropSoldier->inv[pInvSlot->bSlotIdInOtherLocation].initialize();
|
||||
ShopkeeperAddItemToPool( pDropSoldier->sGridNo, &pInvSlot->ItemObject, VISIBLE, pDropSoldier->pathing.bLevel, 0, 0 );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user