#4849: Default map: Use correct number of players
-------------------------------------------------+-------------------------
        Reporter:  Kreuvf                        |      Owner:
            Type:  patch (an actual patch, not   |     Status:  new
  a request for one)                             |  Milestone:  unspecified
        Priority:  normal                        |    Version:  3.2.3
       Component:  other                         |
Operating System:  All/Non-Specific              |
-------------------------------------------------+-------------------------
 The 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.

--
Ticket URL: <http://developer.wz2100.net/ticket/4849>
Warzone 2100 Trac <http://developer.wz2100.net/>
The Warzone 2100 Project

_______________________________________________
Warzone2100-project mailing list
Warzone2100-project@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/warzone2100-project

Reply via email to