(svn r14567) -Revert (part of 14566): don't commit testing stuff...
authorrubidium
Fri, 07 Nov 2008 18:02:46 +0000
changeset 10322 1a2a97853c0c
parent 10321 4a43d5022b7f
child 10323 b03a5264743e
(svn r14567) -Revert (part of 14566): don't commit testing stuff...
src/rail_cmd.cpp
src/rail_map.h
src/smallmap_gui.cpp
--- a/src/rail_cmd.cpp	Fri Nov 07 17:59:51 2008 +0000
+++ b/src/rail_cmd.cpp	Fri Nov 07 18:02:46 2008 +0000
@@ -2108,8 +2108,6 @@
 	RailGroundType old_ground = GetRailGroundType(tile);
 	RailGroundType new_ground;
 
-	UpdateStat(tile, !EnsureNoVehicleOnGround(tile));
-
 	if (old_ground == RAIL_GROUND_WATER) {
 		TileLoop_Water(tile);
 		return;
--- a/src/rail_map.h	Fri Nov 07 17:59:51 2008 +0000
+++ b/src/rail_map.h	Fri Nov 07 18:02:46 2008 +0000
@@ -598,15 +598,6 @@
 	return GetRailGroundType(t) == RAIL_GROUND_ICE_DESERT;
 }
 
-static inline void UpdateStat(TileIndex t, bool on_track)
-{
-	_me[t].m7 = _me[t].m7 << 1 | !!on_track;
-}
-
-static inline byte GetStat(TileIndex t)
-{
-	return _me[t].m7;
-}
 
 static inline void MakeRailNormal(TileIndex t, Owner o, TrackBits b, RailType r)
 {
--- a/src/smallmap_gui.cpp	Fri Nov 07 17:59:51 2008 +0000
+++ b/src/smallmap_gui.cpp	Fri Nov 07 18:02:46 2008 +0000
@@ -383,20 +383,6 @@
 	return ApplyMask(MKCOLOR(0x54545454), &_smallmap_vehicles_andor[t]);
 }
 
-#define MK(x) MKCOLOR(x << 24 | x << 16 | x << 8 | x)
-
-static const uint32 _busyness[] = {
-	MK(15),
-	MK(150),
-	MK(209),
-	MK(206),
-	MK(191),
-	MK(186),
-	MK(184),
-	MK(180),
-};
-
-
 /**
  * Return the color a tile would be displayed with in the small map in mode "Routes".
  *
@@ -419,7 +405,7 @@
 		}
 	} else {
 		/* ground color */
-		bits = ApplyMask(t == MP_RAILWAY ? _busyness[CountBits(GetStat(tile))] : MKCOLOR(0x54545454), &_smallmap_contours_andor[t]);
+		bits = ApplyMask(MKCOLOR(0x54545454), &_smallmap_contours_andor[t]);
 	}
 	return bits;
 }