Skip to content

Commit b6326f1

Browse files
Daniel Svenssondsvensson
authored andcommitted
Emit flag events as they happen for accurate timing.
1 parent e439c26 commit b6326f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/frag_parser.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,18 +736,21 @@ void Frags_Parse(mvd_info_t *mvd, char *fragmessage, int level)
736736
{
737737
mvd->fragstats[p1->pnum].flag_touches++;
738738
Sys_PrintDebug(3, "Frags_Parse: %s touched flag\n", p1->name);
739+
Log_Event(&logger, mvd, LOG_ITEMPICKUP, p1->pnum);
739740
break;
740741
}
741742
case mt_flagdrop:
742743
{
743744
mvd->fragstats[p1->pnum].flag_dropped++;
744745
Sys_PrintDebug(3, "Frags_Parse: %s dropped flag\n", p1->name);
746+
Log_Event(&logger, mvd, LOG_ITEMPICKUP, p1->pnum);
745747
break;
746748
}
747749
case mt_flagcap:
748750
{
749751
mvd->fragstats[p1->pnum].flag_captured++;
750752
Sys_PrintDebug(3, "Frags_Parse: %s captured flag\n", p1->name);
753+
Log_Event(&logger, mvd, LOG_ITEMPICKUP, p1->pnum);
751754
break;
752755
}
753756
}

0 commit comments

Comments
 (0)