Merge lp:~widelands-dev/widelands/warehouse_fix into lp:widelands
Proposed by
cghislai
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Merged at revision: | 6690 | ||||||||
Proposed branch: | lp:~widelands-dev/widelands/warehouse_fix | ||||||||
Merge into: | lp:widelands | ||||||||
Diff against target: |
105 lines (+39/-6) 4 files modified
src/logic/player.cc (+7/-1) src/logic/warehouse.cc (+21/-5) src/logic/warehouse.h (+6/-0) src/wui/warehousewindow.cc (+5/-0) |
||||||||
To merge this branch: | bzr merge lp:~widelands-dev/widelands/warehouse_fix | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
SirVer | Approve | ||
Review via email: mp+177279@code.launchpad.net |
Description of the change
Two fixes for warehouses.
- Correctly reassign all incorporated workers to the dismantlingsite when dismantling. Previously, this was not done and workers started to become fugitive.
- Hide the carrier button in the option window. This will prevent infinite creation of carrier if one decide to empty them.
To post a comment you must log in.
I am slightly confused. Why does it say this is merged? Trunk does definitely not contain the new code. Could it be that you branched and merged your different branches from each other instead from trunk?
however, the code looks fine. Just a nit
upcast(Warehouse, wh, building);
if (wh)
can be written as
if (upcast(Warehouse, wh, building))