diff options
author | smatz <smatz@openttd.org> | 2008-02-20 17:06:58 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-02-20 17:06:58 +0000 |
commit | 9bdb194b2a94c60e54e1a8dac4b984a9f8d25914 (patch) | |
tree | a0fa27513f3db7b29c7cab369a56629ef6c457ce /src/group_gui.cpp | |
parent | 2657090b1fc3123140ffd81f36f2d47270b3ae7c (diff) | |
download | openttd-9bdb194b2a94c60e54e1a8dac4b984a9f8d25914.tar.xz |
(svn r12197) -Fix [FS#1788](r12134): show correct last year profit when the train had negative income
-Codechange: use GetDisplayProfitThisYear() to convert vehicle profit to readable form
Diffstat (limited to 'src/group_gui.cpp')
-rw-r--r-- | src/group_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/group_gui.cpp b/src/group_gui.cpp index 818b73479..7894a3b85 100644 --- a/src/group_gui.cpp +++ b/src/group_gui.cpp @@ -483,8 +483,8 @@ static void GroupWndProc(Window *w, WindowEvent *e) if (w->resize.step_height == PLY_WND_PRC__SIZE_OF_ROW_BIG2) DrawSmallOrderList(v, x + 138, y2); - SetDParam(0, v->profit_this_year >> 8); - SetDParam(1, v->profit_last_year >> 8); + SetDParam(0, v->GetDisplayProfitThisYear()); + SetDParam(1, v->GetDisplayProfitLastYear()); DrawString(x + 19, y2 + w->resize.step_height - 8, STR_0198_PROFIT_THIS_YEAR_LAST_YEAR, TC_FROMSTRING); if (IsValidGroupID(v->group_id)) { |