Default map: Use correct number of players #4849
Comments
Kreuvf uploaded file |
Steven Koenig <kreuvf@...> changed status from |
Steven Koenig <kreuvf@...> changed owner from `` to |
Steven Koenig <kreuvf@...> changed resolution from `` to |
Steven Koenig <kreuvf@...> committed [5807] In Warzone2100/warzone2100@5807d38:
|
Berserk Cyborg changed blocking which not transferred by tractive |
Berserk Cyborg changed blockedby which not transferred by tractive |
Berserk Cyborg commented Thanks! BTW, you had the default set to 2 so I changed it to 4 since Rush is the official default map. :) |
Kreuvf commented Replying to Warzone2100/old-trac-import#4849 (comment:2):
Good catch xD The patch originates from a mod project with a two-player map as the default map, so that's the simple reason behind it. |
resolution_fixed
type_patch (an actual patch, not a request for one)
| by KreuvfThe patch in #4848 made the game use an already defined constant for the default map to show for skirmish games. Unfortunately, maps are not always loaded equally. Here, this means that the number of players is not read from the map, but is as hardcoded as the default map.
To fix the number of slots to use the actual number of players, I introduce the (rather ugly)
DEFAULTSKIRMISHMAPMAXPLAYERS
constant defined right where you would expect it: next to the definition of the default skirmish map.While the patch is for 3.2.3, this should apply cleanly to master as well.
Issue migrated from trac:4849 at 2022-04-16 13:33:35 -0700
The text was updated successfully, but these errors were encountered: