Skip to content

Commit

Permalink
helmet: check if the wearer is the player
Browse files Browse the repository at this point in the history
  • Loading branch information
dastrukar committed Jul 15, 2023
1 parent 795b998 commit 7e8b19d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zscript/helmet/base.zs
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,10 @@ class HHelmetWorn : HDArmourWorn
);
}

override inventory CreateTossable(int amt)
override Inventory CreateTossable(int amt)
{
let hdp = HDPlayerPawn(Owner);
if (hdp.striptime > 0) return null;
if (HDPlayerPawn(Owner) && HDPlayerPawn(Owner).striptime > 0)
return null;

PrintHelmetDebug();

Expand Down

0 comments on commit 7e8b19d

Please sign in to comment.