diff options
author | frosch <frosch@openttd.org> | 2009-09-13 19:15:59 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-09-13 19:15:59 +0000 |
commit | ebd916be3def20902cf19ffd16555074728eb9c3 (patch) | |
tree | c7748d7612a61b9558ffd10ffb176e34584f2376 /src/company_cmd.cpp | |
parent | 5de9cc46b50b8e677395543c10b26b59c860212b (diff) | |
download | openttd-ebd916be3def20902cf19ffd16555074728eb9c3.tar.xz |
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
Diffstat (limited to 'src/company_cmd.cpp')
-rw-r--r-- | src/company_cmd.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp index 9053fa987..97727a911 100644 --- a/src/company_cmd.cpp +++ b/src/company_cmd.cpp @@ -149,8 +149,8 @@ void InvalidateCompanyWindows(const Company *company) { CompanyID cid = company->index; - if (cid == _local_company) InvalidateWindow(WC_STATUS_BAR, 0); - InvalidateWindow(WC_FINANCES, cid); + if (cid == _local_company) SetWindowDirty(WC_STATUS_BAR, 0); + SetWindowDirty(WC_FINANCES, cid); } bool CheckCompanyHasMoney(CommandCost cost) @@ -459,9 +459,9 @@ Company *DoStartupNewCompany(bool is_ai, CompanyID company = INVALID_COMPANY) GeneratePresidentName(c); - InvalidateWindow(WC_GRAPH_LEGEND, 0); - InvalidateWindow(WC_TOOLBAR_MENU, 0); - InvalidateWindow(WC_CLIENT_LIST, 0); + SetWindowDirty(WC_GRAPH_LEGEND, 0); + SetWindowDirty(WC_TOOLBAR_MENU, 0); + SetWindowDirty(WC_CLIENT_LIST, 0); if (is_ai && (!_networking || _network_server)) AI::StartNew(c->index); @@ -595,7 +595,7 @@ void CompaniesYearlyLoop() FOR_ALL_COMPANIES(c) { memmove(&c->yearly_expenses[1], &c->yearly_expenses[0], sizeof(c->yearly_expenses) - sizeof(c->yearly_expenses[0])); memset(&c->yearly_expenses[0], 0, sizeof(c->yearly_expenses[0])); - InvalidateWindow(WC_FINANCES, c->index); + SetWindowDirty(WC_FINANCES, c->index); } if (_settings_client.gui.show_finances && _local_company != COMPANY_SPECTATOR) { |