Fix: Company values do not properly account for shares (#9770)

Co-authored-by: Charles Pigott <charlespigott@googlemail.com>
This commit is contained in:
benda
2022-05-14 09:57:47 -05:00
committed by GitHub
parent fa562ba041
commit 6540948ace
2 changed files with 22 additions and 2 deletions

View File

@@ -167,6 +167,7 @@ struct Company : CompanyProperties, CompanyPool::PoolItem<&_company_pool> {
};
Money CalculateCompanyValue(const Company *c, bool including_loan = true);
Money CalculateCompanyValueExcludingShares(const Company *c, bool including_loan = true);
extern uint _next_competitor_start;
extern uint _cur_company_tick_index;