diff options
author | Tyler Trahan <tyler@tylertrahan.com> | 2021-04-22 13:54:32 -0400 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2021-06-10 23:26:16 +0200 |
commit | d09210e1c6a446ec5a97de4e171aa101d047765a (patch) | |
tree | d45a31e2b65f3399888e14524b805b15ef94a90f /src/subsidy_gui.cpp | |
parent | c2db408d5d947cd4f3df42754a598226818c519f (diff) | |
download | openttd-d09210e1c6a446ec5a97de4e171aa101d047765a.tar.xz |
Feature: Configurable subsidy duration
Diffstat (limited to 'src/subsidy_gui.cpp')
-rw-r--r-- | src/subsidy_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/subsidy_gui.cpp b/src/subsidy_gui.cpp index fe3c55c11..b46ca4da2 100644 --- a/src/subsidy_gui.cpp +++ b/src/subsidy_gui.cpp @@ -161,7 +161,7 @@ struct SubsidyListWindow : Window { if (!s->IsAwarded()) { if (IsInsideMM(pos, 0, cap)) { /* Displays the two offered towns */ - SetupSubsidyDecodeParam(s, true); + SetupSubsidyDecodeParam(s, SubsidyDecodeParamType::Gui); SetDParam(7, _date - ymd.day + s->remaining * 32); DrawString(x, right, y + pos * FONT_HEIGHT_NORMAL, STR_SUBSIDIES_OFFERED_FROM_TO); } @@ -184,7 +184,7 @@ struct SubsidyListWindow : Window { for (const Subsidy *s : Subsidy::Iterate()) { if (s->IsAwarded()) { if (IsInsideMM(pos, 0, cap)) { - SetupSubsidyDecodeParam(s, true); + SetupSubsidyDecodeParam(s, SubsidyDecodeParamType::Gui); SetDParam(7, s->awarded); SetDParam(8, _date - ymd.day + s->remaining * 32); |