Skip to content

Commit

Permalink
Fix handling of startboxes with 1 team in nextmap generator (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
p2004a authored Nov 12, 2023
1 parent 79a5896 commit 9236fb9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/py/gen_nextmap_maplists.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ def get_data(input_file):
for startboxes_info in map["startboxesSet"].values():
if "maxPlayersPerStartbox" in startboxes_info:
team_count = len(startboxes_info["startboxes"])
if team_count == 1:
# Let's ignore the case when there is only 1 team. Maybe it should be
# just illegal in the rowy, but for now, there are some maps like that.
continue
max_players_per_startbox = startboxes_info["maxPlayersPerStartbox"]

# add non-ffa maps to teamsize_dict
Expand Down

0 comments on commit 9236fb9

Please sign in to comment.