OpenTTD

Tasklist

FS#5440 - Possible logic bug.

Attached to Project: OpenTTD
Opened by alex (razieliyo) - Monday, 07 January 2013, 14:56 GMT
Last edited by Ingo von Borstel (planetmaker) - Sunday, 20 January 2013, 16:17 GMT
Type Bug
Category Core
Status Closed
Assigned To No-one
Operating System All
Severity Very Low
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

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!
This task depends upon

Closed by  Ingo von Borstel (planetmaker)
Sunday, 20 January 2013, 16:17 GMT
Reason for closing:  Fixed
Additional comments about closing:  In r24927

Loading...