mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
Check that a dropped backpack belongs to a controllable merc (#320)
Fixes handle BP pickup behavior if a merc drops a backpack and then leaves the sector.
This commit is contained in:
@@ -8318,7 +8318,7 @@ void HandleTBBackpacks(void)
|
|||||||
{
|
{
|
||||||
pTeamSoldier = MercPtrs[ubLoop];
|
pTeamSoldier = MercPtrs[ubLoop];
|
||||||
|
|
||||||
if (pTeamSoldier->flags.DropPackFlag)
|
if (OK_CONTROLLABLE_MERC(pTeamSoldier) && pTeamSoldier->flags.DropPackFlag)
|
||||||
{
|
{
|
||||||
backpackDropped = true;
|
backpackDropped = true;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user