Skip to content

Commit 28f108a

Browse files
committed
examples/print-events: fix scores for cs2
1 parent c65159b commit 28f108a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/print-events/print_events.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ func main() {
4444
switch e.Winner {
4545
case common.TeamTerrorists:
4646
// Winner's score + 1 because it hasn't actually been updated yet
47-
fmt.Printf("Round finished: winnerSide=T ; score=%d:%d\n", gs.TeamTerrorists().Score()+1, gs.TeamCounterTerrorists().Score())
47+
fmt.Printf("Round finished: winnerSide=T ; score=%d:%d\n", gs.TeamTerrorists().Score(), gs.TeamCounterTerrorists().Score())
4848
case common.TeamCounterTerrorists:
49-
fmt.Printf("Round finished: winnerSide=CT ; score=%d:%d\n", gs.TeamCounterTerrorists().Score()+1, gs.TeamTerrorists().Score())
49+
fmt.Printf("Round finished: winnerSide=CT ; score=%d:%d\n", gs.TeamCounterTerrorists().Score(), gs.TeamTerrorists().Score())
5050
default:
5151
// Probably match medic or something similar
5252
fmt.Println("Round finished: No winner (tie)")

0 commit comments

Comments
 (0)