Merge lp:~widelands-dev/widelands/bug-1736086-map-without-players into lp:widelands
Proposed by
GunChleoc
Status: | Merged |
---|---|
Merged at revision: | 8715 |
Proposed branch: | lp:~widelands-dev/widelands/bug-1736086-map-without-players |
Merge into: | lp:widelands |
Diff against target: |
118 lines (+12/-16) 7 files modified
src/editor/map_generator.cc (+2/-2) src/editor/ui_menus/player_menu.cc (+4/-0) src/logic/map.cc (+2/-10) src/map_io/coords_profile.cc (+1/-1) src/map_io/map_player_position_packet.cc (+1/-1) src/sound/note_sound.h (+1/-1) src/ui_fsmenu/mapselect.cc (+1/-1) |
To merge this branch: | bzr merge lp:~widelands-dev/widelands/bug-1736086-map-without-players |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Widelands Developers | Pending | ||
Review via email: mp+345397@code.launchpad.net |
Commit message
New maps now have 0 players
- Initialize new maps with 0 players. Consistent use of Coords::null()
- Disable selection of maps with 0 players
- Automatically add first player to editor player menu for convenience
Description of the change
Maps with 0 players will still show up in the game load screens, but be disabled. I decided to show them to avoid "Where the F is my new map" moments.
If the starting position isn't set, the game load screen won't notice that, but the error is caught and displayed to the user on game start. I chose to keep it that way for efficiency.
To post a comment you must log in.
Continuous integration builds have changed state:
Travis build 3494. State: passed. Details: https:/ /travis- ci.org/ widelands/ widelands/ builds/ 377593633. /ci.appveyor. com/project/ widelands- dev/widelands/ build/_ widelands_ dev_widelands_ bug_1736086_ map_without_ players- 3299.
Appveyor build 3299. State: failed. Details: https:/