Workers exiting warehouse do not follow flag
Bug #1162918 reported by
_aD
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Low
|
cghislai |
Bug Description
When a warehouse is destroyed or dismantled, workers do not exit at the flag and join the road network; they act "lost" until they find a flag. They should exit to the flag and join the road network.
Related branches
lp:~widelands-dev/widelands/warehouse_fix
- SirVer: Approve
-
Diff: 105 lines (+39/-6)4 files modifiedsrc/logic/player.cc (+7/-1)
src/logic/warehouse.cc (+21/-5)
src/logic/warehouse.h (+6/-0)
src/wui/warehousewindow.cc (+5/-0)
Changed in widelands: | |
status: | New → Confirmed |
Changed in widelands: | |
assignee: | nobody → cghislai (charlyghislain) |
Changed in widelands: | |
status: | Confirmed → In Progress |
milestone: | none → build18-rc1 |
Changed in widelands: | |
status: | In Progress → Fix Committed |
To post a comment you must log in.
I think when a warehouse is destroyed by an enemy, this behavior is wanted. But I agree that it should not happen when the player burns it down herself.
One way would be to check for a baseflag and launch the workers when there is one - if there is no baseflag, make the workers all lost. This still looks strange, when the warehouse is destroyed by ripping his base flag, but that cant't be helped.