Merge lp:~widelands-dev/widelands/compass into lp:widelands
Proposed by
cghislai
Status: | Merged |
---|---|
Merged at revision: | 6690 |
Proposed branch: | lp:~widelands-dev/widelands/compass |
Merge into: | lp:widelands |
Diff against target: |
291 lines (+141/-40) 3 files modified
src/logic/dismantlesite.cc (+7/-1) src/logic/soldier.cc (+115/-31) src/logic/worker.cc (+19/-8) |
To merge this branch: | bzr merge lp:~widelands-dev/widelands/compass |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
SirVer | Needs Fixing | ||
Review via email: mp+177280@code.launchpad.net |
Description of the change
These few fixes help a little bit workers to find their way correctly.
- Builder will correctly return to base flag after dismantling
- Workers will correctly return to baseflag if building is being dismantled
- Soldiers will try to get back to homeland if their building is destroyed. Only then they will become fugitive, but will most probably find a flag. If no land is in sight (2*sight), they will become fugitive and will most likely die.
To post a comment you must log in.
I think the code looks fine, however this had merge conflicts when i tried to merge it to trunk and I am too tired to figure them out right now. Could you do this please?