Merge lp:~widelands-dev/widelands/bug-1797213-idle-wares-at-flags-carrier into lp:widelands
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 8903 | ||||
Proposed branch: | lp:~widelands-dev/widelands/bug-1797213-idle-wares-at-flags-carrier | ||||
Merge into: | lp:widelands | ||||
Diff against target: |
25 lines (+8/-2) 1 file modified
src/logic/map_objects/tribes/carrier.cc (+8/-2) |
||||
To merge this branch: | bzr merge lp:~widelands-dev/widelands/bug-1797213-idle-wares-at-flags-carrier | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
GunChleoc | Approve | ||
Review via email: mp+357920@code.launchpad.net |
Commit message
Fixing ware staying at flag if its destination changes while it is carried.
Description of the change
If a ware ends being requested while it is carried, it will be dropped at the next flag and not touched again. To reproduce:
- Start a new game
- Start building a Quarry and connect it to the warehouse/HQ
- While the carrier is carrying the ware, set the allowed number of trunks in the construction site to zero
- The ware will now be placed at the next flag and won't be moved again (that is: not being transported back to the warehouse)
This can be repeated over and over again in both directions (to construction site / to warehouse):
- Changing the request while the ware is carried will result in the ware getting stuck
- Changing the request while the ware is at a flag will work correctly
Continuous integration builds have changed state:
Travis build 4175. State: passed. Details: https:/ /travis- ci.org/ widelands/ widelands/ builds/ 447516794. /ci.appveyor. com/project/ widelands- dev/widelands/ build/_ widelands_ dev_widelands_ bug_1797213_ idle_wares_ at_flags_ carrier- 3973.
Appveyor build 3973. State: success. Details: https:/