-
-
Notifications
You must be signed in to change notification settings - Fork 875
-
-
Notifications
You must be signed in to change notification settings - Fork 875
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
The transfer value in "Transfer: £[number]" can be negative. #8098
Comments
I don't see why this is necessarily a bug. Lines 1211 to 1231 in e45bccb
The transfer virtual payment is calculated as the difference in the cargo packet's potential earnings so far on its route, and the earnings it would have gotten for a non-stop route from its origin to the current unload point, over the total number of transit days so far. If the packet is significantly slower, or moves backwards relative to the origin, on a hop, then that difference in potential earnings can become negative. |
As explained in the last comment, this is working as expected. |
Version of OpenTTD
1.10.0 (2fee030) and 20200426-master
Expected result
"Transfer: £[nonnegative value] / Income: £[number]"
"Transfer: £[nonnegative value] / Cost: £[number]"
"Transfer: £[nonnegative value]"
Actual result
"Transfer: £[negative value] / Income: £[number]"
"Transfer: £[negative value] / Cost: £[number]"
"Transfer: £[negative value]"
Steps to reproduce
Load the title game as a normal game, watch and observe.
The text was updated successfully, but these errors were encountered: