Skip to content

Commit

Permalink
Self-check players instead of player tables
Browse files Browse the repository at this point in the history
  • Loading branch information
NotMyWing committed Dec 7, 2020
1 parent 8261eb3 commit 3715e57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gamemodes/amongus/gamemode/sv_player.moon
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ GM.Player_UnhideEveryone = =>
-- @param ply Player entity.
GM.Player_HideForAlivePlayers = (ply) =>
for otherPly in *player.GetAll!
continue if ply == otherPly

otherPlayerTable = otherPly\GetAUPlayerTable!
continue if otherPlayerTable == playerTable

if not otherPlayerTable or @GameData.DeadPlayers[otherPlayerTable]
ply\SetPreventTransmit otherPly, false
Expand Down

0 comments on commit 3715e57

Please sign in to comment.