mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
Fix: EPC inventory cannot be accessed, and Nails does not allow to take his vest
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6048 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -6294,7 +6294,7 @@ UINT8 StealItems(SOLDIERTYPE* pSoldier,SOLDIERTYPE* pOpponent, UINT8* ubIndexRet
|
||||
else
|
||||
{
|
||||
// Flugente: if we are on the same team, allow guaranteed full access
|
||||
if ( gGameExternalOptions.fAccessOtherMercInventories && pOpponent->bTeam == pSoldier->bTeam && pOpponent->ubID != pSoldier->ubID )
|
||||
if ( AllowedToStealFromTeamMate(pSoldier->ubID, pOpponent->ubID) )
|
||||
{
|
||||
fStealItem = TRUE;
|
||||
|
||||
@@ -6305,6 +6305,10 @@ UINT8 StealItems(SOLDIERTYPE* pSoldier,SOLDIERTYPE* pOpponent, UINT8* ubIndexRet
|
||||
// - or introduce a flag that prohibits teammembers from 'reaction-firing' on us. Set it upon stealing (here) and remove it after the steal menu is closed
|
||||
// or simplicity reasons, I will do #2 here. Until it breaks, then I'll be forced to do #1.
|
||||
pSoldier->bSoldierFlagMask |= SOLDIER_ACCESSTEAMMEMBER;
|
||||
|
||||
// if we are Nails, don't allow taking our vest
|
||||
if ( pOpponent->ubProfile == 34 && i == VESTPOS )
|
||||
fStealItem = FALSE;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user