Limit amount of units fleeing a destroyed warehouse / headquarters
Bug #1624216 reported by
GunChleoc
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Low
|
Unassigned |
Bug Description
If there are a few thousand units fleeing a destroyed warehouse/
Give them a hard coded upper limit per unit type (500?) and destroy the rest.
Related branches
lp://staging/~widelands-dev/widelands/bug-1624216-horsepocalypse
- Widelands Developers: Pending requested
-
Diff: 46 lines (+11/-11)1 file modifiedsrc/logic/map_objects/tribes/warehouse.cc (+11/-11)
Changed in widelands: | |
assignee: | nobody → GunChleoc (gunchleoc) |
status: | New → In Progress |
Changed in widelands: | |
status: | In Progress → Fix Committed |
assignee: | GunChleoc (gunchleoc) → nobody |
To post a comment you must log in.
I feel it'd be best to have the individual workers represent multiple units if needed. So if there's a cap of 500 horses, but the destroyed warehouse had 1200 horses in it, then 200 of the horses would represent 3 each, and 300 would represent 2 each.