diff options
author | rubidium <rubidium@openttd.org> | 2014-09-27 11:17:54 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2014-09-27 11:17:54 +0000 |
commit | 0176ef274f3b4539f43b66a649fc0d0ee0239234 (patch) | |
tree | a97dcf3f8a401c4c6e53dc165339e87cf420b402 /src/smallmap_gui.h | |
parent | f1920457965d49bc329c0648d030600db38f227a (diff) | |
download | openttd-0176ef274f3b4539f43b66a649fc0d0ee0239234.tar.xz |
(svn r26928) -Change: scale the heightmap colours over the whole range of heights (based on patch by ic111)
Diffstat (limited to 'src/smallmap_gui.h')
-rw-r--r-- | src/smallmap_gui.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/smallmap_gui.h b/src/smallmap_gui.h index e180fabd1..7a4805841 100644 --- a/src/smallmap_gui.h +++ b/src/smallmap_gui.h @@ -63,6 +63,7 @@ protected: static SmallMapType map_type; ///< Currently displayed legends. static bool show_towns; ///< Display town names in the smallmap. + static int max_heightlevel; ///< Currently used/cached maximum heightlevel. static const uint LEGEND_BLOB_WIDTH = 8; ///< Width of the coloured blob in front of a line text in the #WID_SM_LEGEND widget. static const uint INDUSTRY_MIN_NUMBER_OF_COLUMNS = 2; ///< Minimal number of columns in the #WID_SM_LEGEND widget for the #SMT_INDUSTRY legend. @@ -146,6 +147,7 @@ protected: return Company::IsValidID(_local_company) ? 1U << _local_company : 0xffffffff; } + void RebuildColourIndexIfNecessary(); uint GetNumberRowsLegend(uint columns) const; void SelectLegendItem(int click_pos, LegendAndColour *legend, int end_legend_item, int begin_legend_item = 0); void SwitchMapType(SmallMapType map_type); |