Decreasing number of wares, when working slot is vacant
Bug #1643170 reported by
giffel
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
It is not possible to unload wares from building, when first worker is present and second is unavailable. I think one worker should be enough to unload wares.
Affects at least War mill (see attachment) and Brewery.
Suggestion: It would be good start moving wares to building only in case that all working slots are (or will be ("coming" state)) occupied by workers. It would avoid situation, when no suitable worker is available and inaccessible wares are stored in building.
Related branches
lp://staging/~widelands-dev/widelands/productionsite-bugs
- GunChleoc: Approve
- Toni Förster: Approve
-
Diff: 268 lines (+64/-22)6 files modifiedsrc/logic/map_objects/tribes/building.h (+2/-2)
src/logic/map_objects/tribes/production_program.cc (+5/-5)
src/logic/map_objects/tribes/productionsite.cc (+36/-13)
src/logic/map_objects/tribes/productionsite.h (+2/-0)
src/logic/map_objects/tribes/worker.cc (+8/-1)
src/map_io/map_buildingdata_packet.cc (+11/-1)
tags: | added: economy |
Changed in widelands: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
tags: | removed: unload vacant |
Changed in widelands: | |
assignee: | nobody → Benedikt Straub (nordfriese) |
milestone: | none → build21-rc1 |
status: | Confirmed → In Progress |
Changed in widelands: | |
assignee: | Benedikt Straub (nordfriese) → nobody |
status: | In Progress → Fix Committed |
To post a comment you must log in.
Migrated to https:/ /github. com/widelands/ widelands/ issues/ 1034