Fix key sharing in coop.

This commit is contained in:
Mari the Deer 2021-08-20 21:20:07 +02:00
commit 5fa179708f
2 changed files with 4 additions and 3 deletions

View file

@ -2518,6 +2518,7 @@ Class Demolitionist : PlayerPawn
nk.AttachToOwner(whom);
nk.Use(true);
}
Super.AddInventory(item);
return;
}
}
@ -2548,7 +2549,7 @@ Class Demolitionist : PlayerPawn
let tkey = Inventory(Spawn(item.GetClass()));
SWWMHandler.KeyTagFix(tkey);
if ( tkey is 'SWWMKey' ) SWWMKey(tkey).propagated = true; // no anim
if ( !tkey.CallTryPickup(self) ) tkey.Destroy();
if ( !tkey.CallTryPickup(players[i].mo) ) tkey.Destroy();
if ( players[i].mo is 'Demolitionist' ) Demolitionist(players[i].mo).key_reentrant = false;
}
}