Skip to content

Commit

Permalink
examples/print-events: fix scores for cs2
Browse files Browse the repository at this point in the history
  • Loading branch information
markus-wa committed Mar 4, 2024
1 parent c65159b commit 28f108a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/print-events/print_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ func main() {
switch e.Winner {
case common.TeamTerrorists:
// Winner's score + 1 because it hasn't actually been updated yet
fmt.Printf("Round finished: winnerSide=T ; score=%d:%d\n", gs.TeamTerrorists().Score()+1, gs.TeamCounterTerrorists().Score())
fmt.Printf("Round finished: winnerSide=T ; score=%d:%d\n", gs.TeamTerrorists().Score(), gs.TeamCounterTerrorists().Score())
case common.TeamCounterTerrorists:
fmt.Printf("Round finished: winnerSide=CT ; score=%d:%d\n", gs.TeamCounterTerrorists().Score()+1, gs.TeamTerrorists().Score())
fmt.Printf("Round finished: winnerSide=CT ; score=%d:%d\n", gs.TeamCounterTerrorists().Score(), gs.TeamTerrorists().Score())
default:
// Probably match medic or something similar
fmt.Println("Round finished: No winner (tie)")
Expand Down

0 comments on commit 28f108a

Please sign in to comment.