Changeset - r22414:34aae40869eb
[Not reviewed]
master
0 1 0
frosch - 8 years ago 2016-07-22 21:38:49
frosch@openttd.org
(svn r27621) -Fix (r27620): Committed too early.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/smallmap_gui.cpp
Show inline comments
 
@@ -729,29 +729,29 @@ void SmallMapWindow::SetZoomLevel(ZoomLe
 
/**
 
 * Decide which colours to show to the user for a group of tiles.
 
 * @param ta Tile area to investigate.
 
 * @return Colours to display.
 
 */
 
inline uint32 SmallMapWindow::GetTileColours(const TileArea &ta) const
 
{
 
	int importance = 0;
 
	TileIndex tile = INVALID_TILE; // Position of the most important tile.
 
	TileType et = MP_VOID;         // Effective tile type at that position.
 

	
 
	TILE_AREA_LOOP(ti, ta) {
 
		TileType ttype = GetTileType(tile);
 
		TileType ttype = GetTileType(ti);
 

	
 
		switch (ttype) {
 
			case MP_TUNNELBRIDGE: {
 
				TransportType tt = GetTunnelBridgeTransportType(tile);
 
				TransportType tt = GetTunnelBridgeTransportType(ti);
 

	
 
				switch (tt) {
 
					case TRANSPORT_RAIL: ttype = MP_RAILWAY; break;
 
					case TRANSPORT_ROAD: ttype = MP_ROAD;    break;
 
					default:             ttype = MP_WATER;   break;
 
				}
 
				break;
 
			}
 

	
 
			default:
 
				break;
 
		}
0 comments (0 inline, 0 general)