From a393ece8f14e1e05bacc85c93295cb6831f4770b Mon Sep 17 00:00:00 2001 From: Bjarki Geir Benediktsson Date: Sat, 6 Nov 2021 21:08:53 +0000 Subject: [PATCH] Removing game quality computation for games with more than 2 teams (#3461) * Removed duplicate test for sender * Game quality only applies to 2-team games --- lua/ui/lobby/lobby.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/ui/lobby/lobby.lua b/lua/ui/lobby/lobby.lua index 9c72dc6d7f..5cabede416 100644 --- a/lua/ui/lobby/lobby.lua +++ b/lua/ui/lobby/lobby.lua @@ -2365,8 +2365,8 @@ function ShowGameQuality() end end - -- Nothing to do if we have only one team... - if table.getn(teams:getTeams()) < 2 then + -- Rating only meaningful in games with 2 teams + if table.getn(teams:getTeams()) ~= 2 then return end @@ -6834,4 +6834,4 @@ function InitHostUtils() gameInfo.Observers = WatchedValueArray(LobbyComm.maxPlayerSlots) end } -end \ No newline at end of file +end