changeset 13560:a5cc4489d3ee draft

(svn r18082) -Codechange: make it visually easier to see where the different legenda 'tables' are split + some typos
author rubidium <rubidium@openttd.org>
date Sat, 14 Nov 2009 20:34:46 +0000
parents 4c1d1ba80222
children 23e33e27fc19
files src/smallmap_gui.cpp
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/smallmap_gui.cpp
+++ b/src/smallmap_gui.cpp
@@ -150,12 +150,12 @@
 
 /** Structure for holding relevant data for legends in small map */
 struct LegendAndColour {
-	uint16 colour;     ///< colour of the item on the map
+	uint8 colour;      ///< colour of the item on the map
 	StringID legend;   ///< string corresponding to the coloured item
 	IndustryType type; ///< type of industry
 	bool show_on_map;  ///< for filtering industries, if true is shown on map in colour
 	bool end;          ///< this is the end of the list
-	bool col_break;    ///< perform a break and go one collumn further
+	bool col_break;    ///< perform a break and go one column further
 };
 
 /** Legend text giving the colours to look for on the minimap */
@@ -179,6 +179,7 @@
 	MK(0xBF, STR_SMALLMAP_LEGENDA_ROAD_VEHICLES),
 	MK(0x98, STR_SMALLMAP_LEGENDA_SHIPS),
 	MK(0x0F, STR_SMALLMAP_LEGENDA_AIRCRAFT),
+
 	MS(0xD7, STR_SMALLMAP_LEGENDA_TRANSPORT_ROUTES),
 	MK(0xB5, STR_SMALLMAP_LEGENDA_BUILDINGS_INDUSTRIES),
 	MKEND()
@@ -188,8 +189,8 @@
 	MK(0xD7, STR_SMALLMAP_LEGENDA_ROADS),
 	MK(0x0A, STR_SMALLMAP_LEGENDA_RAILROADS),
 	MK(0xB5, STR_SMALLMAP_LEGENDA_BUILDINGS_INDUSTRIES),
+
 	MS(0x56, STR_SMALLMAP_LEGENDA_RAILROAD_STATION),
-
 	MK(0xC2, STR_SMALLMAP_LEGENDA_TRUCK_LOADING_BAY),
 	MK(0xBF, STR_SMALLMAP_LEGENDA_BUS_STATION),
 	MK(0xB8, STR_SMALLMAP_LEGENDA_AIRPORT_HELIPORT),
@@ -204,8 +205,8 @@
 	MK(0x25, STR_SMALLMAP_LEGENDA_FIELDS),
 	MK(0x57, STR_SMALLMAP_LEGENDA_TREES),
 	MK(0xD0, STR_SMALLMAP_LEGENDA_FOREST),
+
 	MS(0x0A, STR_SMALLMAP_LEGENDA_ROCKS),
-
 	MK(0xC2, STR_SMALLMAP_LEGENDA_DESERT),
 	MK(0x98, STR_SMALLMAP_LEGENDA_SNOW),
 	MK(0xD7, STR_SMALLMAP_LEGENDA_TRANSPORT_ROUTES),