diff options
author | alberth <alberth@openttd.org> | 2010-08-02 20:32:39 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-08-02 20:32:39 +0000 |
commit | 5556955960c32780170b99259835502c052852fa (patch) | |
tree | 45508225435f689fbc584a952dfd912e47acefd4 /src/economy.cpp | |
parent | 73f45d16d1a5c6174a25ee4a03f4460ee74ab91e (diff) | |
download | openttd-5556955960c32780170b99259835502c052852fa.tar.xz |
(svn r20318) -Doc: Doxygen additions.
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; |