Multiple hunters hunt for same animal
Bug #1407418 reported by
giffel
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Low
|
daAlx1 |
Bug Description
When one animal enters operating area of multiple hunters, all of them will start chasing it, but only the fastest hunter will succeed and others will return without prey. Unfortunately, this behavior occurs even when more than one animal is in sight. It decreasing productivity of hunters and some assignment of animal to one hunter might be beneficial (same situation as tree is assigned to exactly one lumberjack).
Related branches
lp:~amdat/widelands/HunterBug1407418
- GunChleoc: Approve
- daAlx1 (community): Needs Resubmitting
-
Diff: 612 lines (+146/-116)5 files modifiedsrc/logic/immovable.cc (+20/-37)
src/logic/immovable.h (+1/-10)
src/logic/instances.cc (+22/-4)
src/logic/instances.h (+24/-2)
src/logic/worker.cc (+79/-63)
Changed in widelands: | |
assignee: | nobody → daAlx1 (amdat) |
Changed in widelands: | |
status: | Confirmed → Fix Committed |
milestone: | none → build19-rc1 |
tags: | removed: animal hunter |
Changed in widelands: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Hi giffel, thanks for reporting this issue.
Marking confirmed based on your screen shot. If we indeed have such an assignment of trees to a specific lumberjack when they set out to do their work (I haven't checked the code), then we should probably have similar systems in place for other workers.