Skip to content

Commit

Permalink
Merge pull request #863 from kroIya/master
Browse files Browse the repository at this point in the history
If under 2 teams in multiplayer, load 2 boxes anyways. Do this because PvE startboxes are not yet supported, see beyond-all-reason/maps-metadata#121
  • Loading branch information
AntlerForce authored Dec 22, 2024
2 parents 9ea4437 + 5335af3 commit 0ce71dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion LuaMenu/widgets/gui_battle_room_window.lua
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,10 @@ local function SetupInfoButtonsPanel(leftInfo, rightInfo, battle, battleID, myUs
local function defaultBoxes()
if battleLobby.name == "singleplayer" then
battleLobby:SelectMap(battle.mapName)
else
elseif battle.nbTeams and tonumber(battle.nbTeams) > 1 then --Minimum 2 teams in multiplayer until PvE boxes are supported
battleLobby:SayBattle("!loadboxes")
else
battleLobby:SayBattle("!loadboxes \""..battle.mapName.."\" 2 0")
end
UpdateBoxes()
end
Expand Down

0 comments on commit 0ce71dd

Please sign in to comment.