From 830231e2bda3a2a68d3e8cc466059d8b5fcadb63 Mon Sep 17 00:00:00 2001 From: frosch Date: Tue, 24 Nov 2009 22:15:42 +0000 Subject: (svn r18283) -Feature: [NewGRF] Add new price bases for removing industries, building/removing unmovables (new objects), building/removing rail-waypoints/buoys, interacting with town-authority, building foundations, funding primary industries (when not prospecting) and towns. If a GRF does not set price multipliers for these new prices, but for the previously used ones, the old modifiers will be propagated to the new bases. --- src/town_gui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/town_gui.cpp') diff --git a/src/town_gui.cpp b/src/town_gui.cpp index b1fea3616..90f62a61c 100644 --- a/src/town_gui.cpp +++ b/src/town_gui.cpp @@ -184,7 +184,7 @@ public: switch (widget) { case TWA_ACTION_INFO: if (this->sel_index != -1) { - SetDParam(1, (_price[PR_BUILD_INDUSTRY] >> 8) * _town_action_costs[this->sel_index]); + SetDParam(1, _price[PR_TOWN_ACTION] * _town_action_costs[this->sel_index] >> 8); SetDParam(0, STR_LOCAL_AUTHORITY_ACTION_SMALL_ADVERTISING_CAMPAIGN + this->sel_index); DrawStringMultiLine(r.left + WD_FRAMERECT_LEFT, r.right - WD_FRAMERECT_RIGHT, r.top + WD_FRAMERECT_TOP, r.bottom - WD_FRAMERECT_BOTTOM, STR_LOCAL_AUTHORITY_ACTION_TOOLTIP_SMALL_ADVERTISING + this->sel_index); @@ -223,7 +223,7 @@ public: size->height -= WD_FRAMERECT_TOP + WD_FRAMERECT_BOTTOM; Dimension d = {0, 0}; for (int i = 0; i < TACT_COUNT; i++) { - SetDParam(1, (_price[PR_BUILD_INDUSTRY] >> 8) * _town_action_costs[i]); + SetDParam(1, _price[PR_TOWN_ACTION] * _town_action_costs[i] >> 8); SetDParam(0, STR_LOCAL_AUTHORITY_ACTION_SMALL_ADVERTISING_CAMPAIGN + i); d = maxdim(d, GetStringMultiLineBoundingBox(STR_LOCAL_AUTHORITY_ACTION_TOOLTIP_SMALL_ADVERTISING + i, *size)); } -- cgit v1.2.3-54-g00ecf