From 7a66d5e21da056c77e482ec7f3f779ba41ff7c53 Mon Sep 17 00:00:00 2001 From: belugas Date: Wed, 16 Jan 2008 02:53:55 +0000 Subject: (svn r11873) -Codechange: less a few magical numbers and a tiny bit more comments on town zones --- src/road_cmd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/road_cmd.cpp') 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); -- cgit v1.2.3-70-g09d2