From: morosophos Date: Fri, 4 Jan 2019 14:04:50 +0000 (+0200) Subject: Use minigame.netname instead of minigame entity id in the event log X-Git-Tag: xonotic-v0.8.5~1668^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c29c496cfe2a585ec8870f3f1f98f8c68a8d7023;p=xonotic%2Fxonotic-data.pk3dir.git Use minigame.netname instead of minigame entity id in the event log --- diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index 5d90516a5..b13680011 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -2957,7 +2957,7 @@ int Say(entity source, int teamsay, entity privatesay, string msgin, bool floodc FOREACH_CLIENT(IS_REAL_CLIENT(it) && it != source && CS(it).active_minigame == CS(source).active_minigame && !MUTATOR_CALLHOOK(ChatMessageTo, it, source), { sprint(it, msgstr); }); - event_log_msg = sprintf(":chat_minigame:%d:%d:%s", source.playerid, etof(CS(source).active_minigame), msgin); + event_log_msg = sprintf(":chat_minigame:%d:%s:%s", source.playerid, CS(source).active_minigame.netname, msgin); } else if(teamsay > 0) // team message, only sent to team mates