#2018 closed defect (fixed)
[PATCH] traders garrisoned in ships not taken into account
Reported by: | mimo | Owned by: | leper |
---|---|---|---|
Priority: | Should Have | Milestone: | Alpha 14 |
Component: | Core engine | Keywords: | patch |
Cc: | Patch: |
Description
If we (un)garrison a trader in a ship after the trade route has been setup, it is not taken into account in the trade gain because the gain is never recomputed. Here is a fix to do it. In addition, the Calculate gain function has an extra argument which is never used. This patch removes it also.
Attachments (1)
Change History (3)
by , 11 years ago
Attachment: | tradergarrison.diff added |
---|
comment:1 by , 11 years ago
Owner: | set to |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:2 by , 11 years ago
Keywords: | review removed |
---|---|
Milestone: | Backlog → Alpha 14 |
Thanks for the patch, I removed the this.gain &&
as we don't reset this.gain anywhere, so it is useless (and the case where both markets are set and we have no gain isn't possible).
Note:
See TracTickets
for help on using tickets.
In 13520: