From 211426b0a3a4b291b907e6be0a1dcc721a7c1e33 Mon Sep 17 00:00:00 2001 From: z411 Date: Mon, 31 Aug 2020 13:49:40 -0400 Subject: [PATCH] Fixed chat --- qcsrc/server/client.qc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index 1b151d244..08cfd1e98 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -2896,9 +2896,9 @@ int Say(entity source, int teamsay, entity privatesay, string msgin, bool floodc if (source) { namestr = playername(source, autocvar_g_chat_teamcolors); - if (IS_DEAD(p) || p.frags == FRAGS_PLAYER_OUT_OF_GAME) + if (IS_DEAD(source) || source.frags == FRAGS_PLAYER_OUT_OF_GAME) namestr = strcat("(DEAD) ", namestr); - else if (IS_OBSERVER(p) || IS_SPEC(p)) + else if (IS_OBSERVER(source) || IS_SPEC(source)) namestr = strcat("(s) ", namestr); } @@ -3201,7 +3201,6 @@ void play_chatsound(entity source, string msgin) //bprintf("msg is %s and list is %s\n", rawmsg, autocvar_g_chat_sounds_list); if (findinlist_abbrev(rawmsg, autocvar_g_chat_sounds_list)) { - bprintf("IN LIST!!!\n"); play2all(strcat("sound/chat/", rawmsg, ".ogg")); source.(flood_sound) = time; -- 2.39.2