Skip to content

Commit 236b3b5

Browse files
committed
fire missing round announce match start game event
1 parent 2b9a002 commit 236b3b5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/demoinfocs/game_events.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ func newGameEventHandler(parser *parser, ignoreBombsiteIndexNotFound bool) gameE
215215
"round_announce_final": geh.roundAnnounceFinal, // 30th round for normal de_, not necessarily matchpoint
216216
"round_announce_last_round_half": geh.roundAnnounceLastRoundHalf, // Last round of the half
217217
"round_announce_match_point": nil, // Match point announcement
218-
"round_announce_match_start": nil, // Special match start announcement
218+
"round_announce_match_start": geh.roundAnnounceMatchStart, // Special match start announcement
219219
"round_announce_warmup": nil, // Dunno
220220
"round_end": geh.roundEnd, // Round ended and the winner was announced
221221
"round_end_upload_stats": nil, // Dunno, only present in POV demos
@@ -291,6 +291,10 @@ func (geh gameEventHandler) roundAnnounceFinal(map[string]*msg.CMsgSource1Legacy
291291
geh.dispatch(events.AnnouncementFinalRound{})
292292
}
293293

294+
func (geh gameEventHandler) roundAnnounceMatchStart(map[string]*msg.CMsgSource1LegacyGameEventKeyT) {
295+
geh.dispatch(events.AnnouncementMatchStarted{})
296+
}
297+
294298
func (geh gameEventHandler) roundAnnounceLastRoundHalf(map[string]*msg.CMsgSource1LegacyGameEventKeyT) {
295299
geh.dispatch(events.AnnouncementLastRoundHalf{})
296300
}

0 commit comments

Comments
 (0)