diff options
author | Santo Cariotti <santo@dcariotti.me> | 2025-04-24 13:53:54 +0200 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2025-04-24 13:53:54 +0200 |
commit | b35829071ab0d0f3479021eac151b90e49a2fca5 (patch) | |
tree | 0e2af88ed2732e2211ffbf5689488e010174783a /pkg/ui/views/play_util.go | |
parent | 4ae96a216eb50ccec7712fa9ed0d4dc8d9950f68 (diff) |
Play co-op 2 vs 2
Diffstat (limited to 'pkg/ui/views/play_util.go')
-rw-r--r-- | pkg/ui/views/play_util.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/ui/views/play_util.go b/pkg/ui/views/play_util.go index b2f70b5..14f462a 100644 --- a/pkg/ui/views/play_util.go +++ b/pkg/ui/views/play_util.go @@ -45,13 +45,13 @@ func formatGamesForPage(userID int, games []database.Game, altCodeStyle lipgloss if game.Outcome != "*" { if len(game.Outcome) >= 2 { if game.Outcome[0:2] == "1-" { - if game.Player1.ID == userID { + if game.Player1.ID == userID || game.Player3 != nil && game.Player3.ID == userID { icon = winIcon } else { icon = loseIcon } } else if game.Outcome[0:2] == "0-" { - if game.Player2 != nil && game.Player2.ID == userID { + if game.Player2 != nil && game.Player2.ID == userID || game.Player4 != nil && game.Player4.ID == userID { icon = winIcon } else { icon = loseIcon |