Fix delivered cargo graph displaying units as money

This commit is contained in:
dP
2020-08-10 01:51:07 +03:00
parent 0b1deb7de4
commit 83d06423c3
2 changed files with 4 additions and 2 deletions

View File

@@ -74,7 +74,7 @@ This is usable for any OpenTTD servers
== CHANGELOG ==
*** 1.10.3 () ***
*** 1.10.3 (10 Aug 2020) ***
- Fix order hotkeys adding extra no load/unload orders.
- Allow to use TAB as a hotkey.
- Add hotkey to toggle minimap.
@@ -98,6 +98,8 @@ This is usable for any OpenTTD servers
- Show preview when building a rail depot.
- Fix: sprite preview in sprite aligner is too small with scaled UI.
- Slightly improve funding highlight update.
- Remove cargo color icons from income and delivered cargo graphs to avoid confusion with company colors.
- Fix delivered cargo graph displaying units as money.
*** 1.10.2 (5 Jun 2020) ***
- Add new minimap mode showing industries, height and farms at the same time.

View File

@@ -934,7 +934,7 @@ void ShowIncomeGraph()
struct DeliveredCargoGraphWindow : ExcludingCargoBaseGraphWindow {
DeliveredCargoGraphWindow(WindowDesc *desc, WindowNumber window_number) :
ExcludingCargoBaseGraphWindow(desc, WID_CPR_GRAPH, STR_JUST_CURRENCY_SHORT, false)
ExcludingCargoBaseGraphWindow(desc, WID_CPR_GRAPH, STR_JUST_COMMA, false)
{
this->CreateNestedTree();
this->vscroll = this->GetScrollbar(WID_CPR_MATRIX_SCROLLBAR);