From d349f62ebe4f8945d004e4f2677810320909cce8 Mon Sep 17 00:00:00 2001 From: Pavel Stupnikov Date: Thu, 14 Jan 2016 13:35:45 +0300 Subject: [PATCH] convert indentation to tabs --- cm_changelog.txt | 1 + src/misc_gui.cpp | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/cm_changelog.txt b/cm_changelog.txt index cbf20fda09..74c63d6b10 100644 --- a/cm_changelog.txt +++ b/cm_changelog.txt @@ -77,6 +77,7 @@ This is usable for any OpenTTD servers *** - Added active stations highlight to town zoning. Outlines stations that have been serviced in last ~50 days (as in checks for authority rating and town growth rate). - Fixed next counter in town window (was always showing -1 in case of custom growth rate). +- Detailed station ratings tooltip (hover over rating in station window). *** 1.5.3 (3 Dec 2015) *** - Update to OpenTTD 1.5.3 diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index 287c4d2023..0f521d64c5 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -1591,19 +1591,19 @@ public: SetDParam(0, STR_STATION_RATING_TOOLTIP_NEWGRF_RATING_0 + (newgrf_rating <= 0 ? 0 : 1)); SetDParam(1, newgrf_rating); GetString(this->data[line_nr], STR_STATION_RATING_TOOLTIP_NEWGRF_RATING, lastof(this->data[line_nr])); - line_nr++; + line_nr++; - SetDParam(0, min(last_speed, 0xFF)); + SetDParam(0, min(last_speed, 0xFF)); GetString(this->data[line_nr], STR_STATION_RATING_TOOLTIP_NEWGRF_SPEED, lastof(this->data[line_nr])); - line_nr++; + line_nr++; - SetDParam(0, min(ge->max_waiting_cargo, 0xFFFF)); + SetDParam(0, min(ge->max_waiting_cargo, 0xFFFF)); GetString(this->data[line_nr], STR_STATION_RATING_TOOLTIP_NEWGRF_WAITUNITS, lastof(this->data[line_nr])); - line_nr++; + line_nr++; - SetDParam(0, (min(ge->time_since_pickup, 0xFF) * 5 + 1) / 2); + SetDParam(0, (min(ge->time_since_pickup, 0xFF) * 5 + 1) / 2); GetString(this->data[line_nr], STR_STATION_RATING_TOOLTIP_NEWGRF_WAITTIME, lastof(this->data[line_nr])); - line_nr++; + line_nr++; } }