Fix GUEST tempmute message never appearing

This commit is contained in:
Antonio Martinez 2025-08-27 22:17:44 -04:00
parent 1d2ec19c6e
commit 4ae71662e0
2 changed files with 1 additions and 3 deletions

View file

@ -3938,7 +3938,7 @@ static void Got_ServerTempMutePlayer(const UINT8 **p, INT32 playernum)
players[forplayer].pflags2 |= PF2_SERVERTEMPMUTE;
if (P_IsMachineLocalPlayer(&players[forplayer]))
{
if (IsPlayerGuest(playernum))
if (IsPlayerGuest(forplayer))
HU_AddChatText(va("\x82* GUESTs cannot use chat on this server. Create a profile to join in!"), false);
else
HU_AddChatText(va("\x82* You are temporarily muted until you finish more rounds."), false);

View file

@ -342,8 +342,6 @@ void SV_UpdateTempMutes(void)
continue;
}
serverplayer_t *stat = SV_GetStatsByPlayerIndex(i);
if (i == serverplayer || IsPlayerAdmin(i))