Skip to content

Commit

Permalink
Don't include endgame points on back of team sign.
Browse files Browse the repository at this point in the history
  • Loading branch information
patfair committed Sep 28, 2024
1 parent fe41f78 commit ebf9275
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions field/team_sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,9 @@ func (sign *TeamSign) update(
// Returns the in-match rear text that is common to a whole alliance.
func generateInMatchRearText(isRed bool, countdown string, realtimeScore, opponentRealtimeScore *RealtimeScore) string {
scoreSummary := realtimeScore.CurrentScore.Summarize(&opponentRealtimeScore.CurrentScore)
scoreTotal := scoreSummary.Score
opponentScoreTotal := opponentRealtimeScore.CurrentScore.Summarize(&realtimeScore.CurrentScore).Score
scoreTotal := scoreSummary.Score - scoreSummary.StagePoints
opponentScoreSummary := opponentRealtimeScore.CurrentScore.Summarize(&realtimeScore.CurrentScore)
opponentScoreTotal := opponentScoreSummary.Score - opponentScoreSummary.StagePoints
var allianceScores string
if isRed {
allianceScores = fmt.Sprintf("R%03d-B%03d", scoreTotal, opponentScoreTotal)
Expand Down

0 comments on commit ebf9275

Please sign in to comment.