Merge lp://staging/~widelands-dev/widelands/bug-1191295-no-seafaring-builder into lp://staging/widelands
Status: | Merged |
---|---|
Merged at revision: | 8275 |
Proposed branch: | lp://staging/~widelands-dev/widelands/bug-1191295-no-seafaring-builder |
Merge into: | lp://staging/widelands |
Diff against target: |
682 lines (+197/-198) 10 files modified
src/economy/expedition_bootstrap.cc (+123/-162) src/economy/expedition_bootstrap.h (+11/-16) src/economy/input_queue.cc (+1/-1) src/economy/input_queue.h (+1/-1) src/economy/wares_queue.cc (+3/-1) src/economy/workers_queue.cc (+32/-1) src/economy/workers_queue.h (+18/-0) src/logic/map_objects/tribes/warehouse.cc (+1/-2) src/map_io/map_buildingdata_packet.cc (+4/-3) src/wui/portdockwaresdisplay.cc (+3/-11) |
To merge this branch: | bzr merge lp://staging/~widelands-dev/widelands/bug-1191295-no-seafaring-builder |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
GunChleoc | Approve | ||
Review via email: mp+315525@code.staging.launchpad.net |
Description of the change
Added display of builder to expedition bootstrap. Seems to work fine so far, but I am not sure how to implement the saving/loading code (in the branch disabled). The current version of it does not contain a version number so changing it will probably break it.
Possible hack:
Currently the first entry in the saved bootstrap class is the number of builders already waiting. Since this is always 0 or 1 this could be abused as a "version number" when loading the packet, using version number 2 for the new packet format. This should work for loading older save games with a new version of the game but would give some strange error/crash when loading a new save game with an old version of the game (I guess. Since the old game would not recognize the new format it would try to load two workers).
Code LGTM so far - will have to look into the saveloading thing.