- use proper interface calls to give the initial BasicArmor to the player.

The old code didn't check if giving the item was proper and just went ahead adding it to the inventory unconditionally.
This commit is contained in:
Christoph Oelckers 2019-07-17 20:08:43 +02:00
parent b37acef0c9
commit b360f04e28

View file

@ -1834,9 +1834,7 @@ class PlayerPawn : Actor
// BasicArmor must come right after that. It should not affect any
// other protection item as well but needs to process the damage
// before the HexenArmor does.
let barmor = BasicArmor(Spawn('BasicArmor'));
barmor.BecomeItem ();
AddInventory (barmor);
GiveInventoryType('BasicArmor');
// Now add the items from the DECORATE definition
let di = GetDropItems();