Skip to content

Commit

Permalink
Removing game quality computation for games with more than 2 teams (F…
Browse files Browse the repository at this point in the history
…AForever#3461)

* Removed duplicate test for sender

* Game quality only applies to 2-team games
  • Loading branch information
Benzi-Junior authored and Garanas committed Dec 3, 2021
1 parent 578bc63 commit a393ece
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/ui/lobby/lobby.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -6834,4 +6834,4 @@ function InitHostUtils()
gameInfo.Observers = WatchedValueArray(LobbyComm.maxPlayerSlots)
end
}
end
end

0 comments on commit a393ece

Please sign in to comment.