diff options
Diffstat (limited to 'src/economy.cpp')
-rw-r--r-- | src/economy.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/economy.cpp b/src/economy.cpp index 2ea9a386a..cad7f50b4 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -481,6 +481,10 @@ void ChangeOwnershipOfCompanyItems(Owner old_owner, Owner new_owner) MarkWholeScreenDirty(); } +/** + * Check for bankruptcy of a company. Called every three months. + * @param c Company to check. + */ static void CompanyCheckBankrupt(Company *c) { /* If the company has money again, it does not go bankrupt */ @@ -552,6 +556,10 @@ static void CompanyCheckBankrupt(Company *c) } } +/** + * Update the finances of all companies. + * Pay for the stations, update the history graph, update ratings and company values, and deal with bankruptcy. + */ static void CompaniesGenStatistics() { Station *st; |