From a52afc2bafcbafc008019e93706022dd7f30f6e8 Mon Sep 17 00:00:00 2001
From: Tatsuru <44866610+Ikkarin@users.noreply.github.com>
Date: Sat, 19 Sep 2020 23:10:03 -0300
Subject: [PATCH] Ignore spectators

---
 src/p_mobj.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/p_mobj.c b/src/p_mobj.c
index 1e8fe02c1..badf19372 100644
--- a/src/p_mobj.c
+++ b/src/p_mobj.c
@@ -4194,7 +4194,7 @@ boolean P_SupermanLook4Players(mobj_t *actor)
 
 	for (c = 0; c < MAXPLAYERS; c++)
 	{
-		if (playeringame[c])
+		if (playeringame[c] && !players[c].spectator)
 		{
 			if (players[c].pflags & PF_INVIS)
 				continue; // ignore notarget
-- 
GitLab