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

Possible logic bug. #5440

Closed
DorpsGek opened this issue Jan 7, 2013 · 1 comment
Closed

Possible logic bug. #5440

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

Comments

@DorpsGek
Copy link
Member

DorpsGek commented Jan 7, 2013

razieliyo opened the ticket and wrote:

FILE: https://secure.openttd.org/svn/trunk/src/economy.cpp

PROBLEM: CalculateCompanyValue() returns 1 as the smallest value. Then, within CompanyCheckBankrupt(), within the month switch, in the case 7: you check if what CompanyCheckBankrupt returns is greater than 0. It will always be greater than 0, because the CalculateCompanyValue() returns, at least, 1.

See you!

Reported version: trunk
Operating system: All


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

planetmaker closed the ticket.

Reason for closing: Fixed

In r24927


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

@DorpsGek DorpsGek added Core flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) 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/)
Projects
None yet
Development

No branches or pull requests

1 participant