Skip to content

Commit 3715e57

Browse files
committed
Self-check players instead of player tables
1 parent 8261eb3 commit 3715e57

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/gamemodes/amongus/gamemode/sv_player.moon

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ GM.Player_UnhideEveryone = =>
2929
-- @param ply Player entity.
3030
GM.Player_HideForAlivePlayers = (ply) =>
3131
for otherPly in *player.GetAll!
32+
continue if ply == otherPly
33+
3234
otherPlayerTable = otherPly\GetAUPlayerTable!
33-
continue if otherPlayerTable == playerTable
3435

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

0 commit comments

Comments
 (0)