Use minigame.netname instead of minigame entity id in the event log 626/head
authormorosophos <morosophos@teichisma.info>
Fri, 4 Jan 2019 14:04:50 +0000 (16:04 +0200)
committermorosophos <morosophos@teichisma.info>
Fri, 4 Jan 2019 14:04:50 +0000 (16:04 +0200)
qcsrc/server/client.qc

index 5d90516..b136800 100644 (file)
@@ -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