Merge lp:~widelands-dev/widelands/bug580923 into lp:widelands
Proposed by
Jens Beyer
Status: | Merged |
---|---|
Merged at revision: | 7540 |
Proposed branch: | lp:~widelands-dev/widelands/bug580923 |
Merge into: | lp:widelands |
Diff against target: |
90 lines (+33/-19) 2 files modified
src/logic/warehouse.cc (+32/-18) src/logic/warehouse.h (+1/-1) |
To merge this branch: | bzr merge lp:~widelands-dev/widelands/bug580923 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
GunChleoc | Approve | ||
Review via email: mp+273274@code.launchpad.net |
Description of the change
Freely creating workers in special situations (cheating ^^) is gone.
For widelands game itself it should not make a big difference, as the carrier doesn't cost anything. The game still creates carriers once a second or so, even if not needed.
But when you apply a buildcost to the carrier, the automatic creation stops, and they are created only if necessary.
If there is no carrier, and no resources to create one, the economy stalls...
Please test thoroughly, I don't know if I have found all cases and circumstances to test.
To post a comment you must log in.
It looks good to me. But what is the purpose of this change? Can you imagine that carriers will have any kind of buildcost in the future? If not, then such change is not needed.