summaryrefslogtreecommitdiff
path: root/src/road_cmd.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2008-01-16 02:53:55 +0000
committerbelugas <belugas@openttd.org>2008-01-16 02:53:55 +0000
commit7a66d5e21da056c77e482ec7f3f779ba41ff7c53 (patch)
tree09c173d8b36aaf573b2aaa27505e66d547cbe189 /src/road_cmd.cpp
parent77a20eae43dd5363d3ee3ab2a51fedb14d2cebba (diff)
downloadopenttd-7a66d5e21da056c77e482ec7f3f779ba41ff7c53.tar.xz
(svn r11873) -Codechange: less a few magical numbers and a tiny bit more comments on town zones
Diffstat (limited to 'src/road_cmd.cpp')
-rw-r--r--src/road_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp
index 7124a6943..dcb3871c6 100644
--- a/src/road_cmd.cpp
+++ b/src/road_cmd.cpp
@@ -1203,14 +1203,14 @@ static void TileLoop_Road(TileIndex tile)
const Town* t = ClosestTownFromTile(tile, (uint)-1);
if (!HasRoadWorks(tile)) {
- int grp = 0;
+ HouseZonesBits grp = HZB_TOWN_EDGE;
if (t != NULL) {
grp = GetTownRadiusGroup(t, tile);
/* Show an animation to indicate road work */
if (t->road_build_months != 0 &&
- (DistanceManhattan(t->xy, tile) < 8 || grp != 0) &&
+ (DistanceManhattan(t->xy, tile) < 8 || grp != HZB_TOWN_EDGE) &&
GetRoadTileType(tile) == ROAD_TILE_NORMAL && CountBits(GetAllRoadBits(tile)) > 1 ) {
if (GetTileSlope(tile, NULL) == SLOPE_FLAT && EnsureNoVehicleOnGround(tile) && Chance16(1, 40)) {
StartRoadWorks(tile);