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

Check Bankruptcy Before Infrastructure Costs #6679

Closed
DorpsGek opened this issue Feb 26, 2018 · 1 comment
Closed

Check Bankruptcy Before Infrastructure Costs #6679

DorpsGek opened this issue Feb 26, 2018 · 1 comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay

Comments

@DorpsGek
Copy link
Member

Samu opened the ticket and wrote:

Copy paste from https://www.tt-forums.net/viewtopic.php?p=1177621# p1177621

This patch is aimed to prevent very profitable AIs from triggering a bankrupt warning, due to working very close to the loan limit right before entering the new month.

The monthly calculation for infrastructure costs was being done before doing the bankruptcy check. This patch swaps the checking order so that the infrastrucure costs are done after the bankruptcy check. This will avoid many false AI bankrupts.

There is, of course, an impact for human controlled companies as well, but I'm not too sure yet if it's going to adversedly impact competitive games.

Attachments

Reported version: trunk
Operating system: All


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

frosch closed the ticket.

Reason for closing: Implemented

in r27981. Thanks for the patch.


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

@DorpsGek DorpsGek added Core flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay labels Apr 7, 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/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay
Projects
None yet
Development

No branches or pull requests

1 participant