From b35829071ab0d0f3479021eac151b90e49a2fca5 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Thu, 24 Apr 2025 13:53:54 +0200 Subject: Play co-op 2 vs 2 --- pkg/ui/views/play_util.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/ui/views/play_util.go') 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 -- cgit v1.2.3-18-g5258