Mercurial > hg > openttd
changeset 15003:895f760ad105 draft
(svn r19615) -Fix [FS#3763]: Company related graphs weren't updated correctly after changing the company colour.
author | terkhen <terkhen@openttd.org> |
---|---|
date | Mon, 12 Apr 2010 17:58:09 +0000 |
parents | baf0e12ad2b4 |
children | 087f6f616f99 |
files | src/company_cmd.cpp src/graph_gui.cpp |
diffstat | 2 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/company_cmd.cpp +++ b/src/company_cmd.cpp @@ -969,6 +969,13 @@ ResetVehicleColourMap(); MarkWholeScreenDirty(); + /* All graph related to companies use the company colour. */ + InvalidateWindowData(WC_INCOME_GRAPH, 0); + InvalidateWindowData(WC_OPERATING_PROFIT, 0); + InvalidateWindowData(WC_DELIVERED_CARGO, 0); + InvalidateWindowData(WC_PERFORMANCE_HISTORY, 0); + InvalidateWindowData(WC_COMPANY_VALUE, 0); + /* Company colour data is indirectly cached. */ Vehicle *v; FOR_ALL_VEHICLES(v) {