Skip to content

Commit 2b45697

Browse files
authored
Merge pull request QW-Group#22 from qw-ctf/frag-logging
Add support for frag logging.
2 parents d459949 + 1754517 commit 2b45697

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/logger.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ static log_eventlogger_type_t Log_ParseEventloggerType(const char *event_logger_
8686
{
8787
return LOG_DEATH;
8888
}
89+
if (!strcasecmp(event_logger_type, "FRAG"))
90+
{
91+
return LOG_FRAG;
92+
}
8993
else if (!strcasecmp(event_logger_type, "MOVE"))
9094
{
9195
return LOG_MOVE;

src/netmsg_parser.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -897,6 +897,7 @@ static void NetMsg_Parser_Parse_svc_updatefrags(mvd_info_t *mvd)
897897
Sys_PrintDebug(2, "svc_updatefrags: Pnum = %i Userid = %i Name = %s Prev = %i ", pnum, mvd->players[pnum].userid, mvd->players[pnum].name, mvd->players[pnum].frags);
898898
mvd->players[pnum].frags = MSG_ReadShort(); // Frags.
899899
Sys_PrintDebug(2, "New = %i\n", mvd->players[pnum].frags);
900+
Log_Event(&logger, mvd, LOG_FRAG, pnum);
900901
}
901902

902903
static void NetMsg_Parser_Parse_svc_stopsound(void)

0 commit comments

Comments
 (0)