From: z411 Date: Mon, 31 Aug 2020 17:49:40 +0000 (-0400) Subject: Fixed chat X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=211426b0a3a4b291b907e6be0a1dcc721a7c1e33;p=xonotic%2Fxonotic-data.pk3dir.git Fixed chat --- 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;