Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when calculating income for all transported goods #2278

Closed
DorpsGek opened this issue Sep 8, 2008 · 1 comment
Closed

Error when calculating income for all transported goods #2278

DorpsGek opened this issue Sep 8, 2008 · 1 comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

DorpsGek commented Sep 8, 2008

mrmist opened the ticket and wrote:

Trying to understand the formula for calculating income for transported goods, I found what I think is a tiny error in the calculation. For some of the cargo types, the transition between medium/normal and "slow transports"(t > days2) reveals tiny jump, which will result in an INCREASE in the income. This can be seen in the "sshot_orig" file. By using basic maths, I made a new algorithm. The result can be seen in the file "sshot_fixed". This bugfix will have some implications on gameplay, since the income descends a bit quicker, however it will make it easier to predict the income. I also attach a "svn diff" on how to fix this in the source code. It's based on the SVN version of OpenTTD, revision 14274.

Attachments

Reported version: trunk
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/2278
@DorpsGek
Copy link
Member Author

DorpsGek commented Sep 8, 2008

peter1138 closed the ticket.

Reason for closing: Invalid


This comment was imported from FlySpray: https://bugs.openttd.org/task/2278

@DorpsGek DorpsGek closed this as completed Sep 8, 2008
@DorpsGek DorpsGek added Core flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) labels Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant