Skip to content

Commit

Permalink
fixed go formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pnxenopoulos committed Sep 2, 2023
1 parent e8a0d14 commit 121d689
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions awpy/parser/parse_demo.go
Original file line number Diff line number Diff line change
Expand Up @@ -1485,11 +1485,11 @@ func registerRoundEndHandler(demoParser *dem.Parser, currentGame *Game, currentR

func registerRoundMVPHandler(demoParser *dem.Parser, currentRound *GameRound) {
(*demoParser).RegisterEventHandler(func(e events.RoundMVPAnnouncement) {
if e.Player != nil {
currentRound.MVPName = e.Player.Name
currentRound.MVPSteamID = int64(e.Player.SteamID64)
currentRound.MVPReason = convertRoundMVPReason(e.Reason)
}
if e.Player != nil {
currentRound.MVPName = e.Player.Name
currentRound.MVPSteamID = int64(e.Player.SteamID64)
currentRound.MVPReason = convertRoundMVPReason(e.Reason)
}
})
}

Expand Down Expand Up @@ -2753,7 +2753,7 @@ func main() {
registerRoundEndOfficialHandler(&p, &currentGame, &currentRound, &roundInEndTime, &RoundRestartDelay)
registerRoundEndHandler(&p, &currentGame, &currentRound, &roundStarted, &roundInEndTime, &RoundRestartDelay)

// Parse MVP announcements
// Parse MVP announcements
registerRoundMVPHandler(&p, &currentRound)

// Parse bomb defuses
Expand Down

0 comments on commit 121d689

Please sign in to comment.