mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
Items can now be taken from non colapsed POWs
This commit is contained in:
@@ -7035,7 +7035,7 @@ UINT8 StealItems(SOLDIERTYPE* pSoldier,SOLDIERTYPE* pOpponent, UINT8* ubIndexRet
|
||||
if ((pObject->exists() == true) && !ItemIsUndroppableByDefault(pObject->usItem)) // CHECK! Undroppable items cannot be stolen - SANDRO
|
||||
{
|
||||
// Is the enemy collapsed
|
||||
if ( pOpponent->stats.bLife < OKLIFE || pOpponent->bCollapsed )
|
||||
if ( pOpponent->stats.bLife < OKLIFE || pOpponent->bCollapsed || (pOpponent->usSoldierFlagMask & SOLDIER_POW) )
|
||||
{
|
||||
// We can steal any of his items in the inventory
|
||||
fStealItem = TRUE;
|
||||
|
||||
Reference in New Issue
Block a user