Skip to content

Commit

Permalink
fix some legacy handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Rathoz committed Oct 14, 2024
1 parent 693d092 commit c10ed1e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/match2/wikis/dota2/legacy/match_maps_legacy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function MatchMapsLegacy._convertMaps(args)
for key, value in pairs(map) do
args[mapKey .. key] = value
end
args[mapKey] = DEFAULT
args[mapKey] = ''
args[matchKey] = nil
end
return args
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ local globalVars = PageVariableNamespace()

local MAX_NUMBER_OF_OPPONENTS = 2
local MAX_MUMBER_OF_PLAYERS = 5
local DEFAULT = 'default'
local DEFAULT_WIN = 'W'
local DEFAULT_LOSS = 'L'
local FORFEIT = 'FF'
Expand Down Expand Up @@ -58,7 +57,7 @@ function MatchMapsLegacy._handleMaps(args)
args[mapKey .. key] = value
end
args[mapKey .. 'winner'] = Table.extract(args, mapKey .. 'win')
args[mapKey] = DEFAULT
args[mapKey] = ''
args[matchKey] = nil
end
return args
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ function MatchMapsLegacy.convertMaps(args)
for key, value in pairs(map) do
args[mapKey .. key] = value
end
args[mapKey] = DEFAULT
args[mapKey] = ''
args[matchKey] = nil
end
return args
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ function MatchMapsLegacy.convertMaps(args)
args[mapKey .. key] = value
end
args['vodgame' .. matchIndex] = nil
args[mapKey] = DEFAULT
args[mapKey] = ''
args[matchKey] = nil
end
return args
Expand Down

0 comments on commit c10ed1e

Please sign in to comment.