Skip to content

Commit

Permalink
remove the need for extra input
Browse files Browse the repository at this point in the history
  • Loading branch information
Rathoz committed Dec 10, 2024
1 parent 92d49ae commit 8c5c4ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion components/match2/commons/match_group_input_util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1485,7 +1485,6 @@ function MatchGroupInputUtil.parseSettings(match, opponentCount)
placementInfo = placementInfo,
settings = {
showGameDetails = Logic.nilOr(Logic.readBoolOrNil(match.showgamedetails), true),
showKills = Logic.nilOr(Logic.readBoolOrNil(match.showkills), true),
matchPointThreshold = tonumber(match.matchpoint),
}
}
Expand Down
7 changes: 6 additions & 1 deletion components/match2/commons/match_summary_ffa.lua
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,12 @@ local GAME_OVERVIEW_COLUMNS = {
},
{
show = function(match)
return match.extradata.settings.showGameDetails and match.extradata.settings.showKills
if match.extradata.settings.showGameDetails == false then
return false
end
return Table.any(match.extradata.placementinfo or {}, function(_, value)
return value.killPoints ~= nil
end)
end,
class = 'panel-table__cell__game-kills',
icon = 'kills',
Expand Down

0 comments on commit 8c5c4ff

Please sign in to comment.