equal
deleted
inserted
replaced
883 if (!HasRoadWorks(tile)) { |
883 if (!HasRoadWorks(tile)) { |
884 const Town* t = ClosestTownFromTile(tile, (uint)-1); |
884 const Town* t = ClosestTownFromTile(tile, (uint)-1); |
885 int grp = 0; |
885 int grp = 0; |
886 |
886 |
887 if (t != NULL) { |
887 if (t != NULL) { |
888 grp = GetTownRadiusGroup(t, tile); |
888 grp = t->GetRadiusGroup(tile); |
889 |
889 |
890 // Show an animation to indicate road work |
890 // Show an animation to indicate road work |
891 if (t->road_build_months != 0 && |
891 if (t->road_build_months != 0 && |
892 (DistanceManhattan(t->xy, tile) < 8 || grp != 0) && |
892 (DistanceManhattan(t->xy, tile) < 8 || grp != 0) && |
893 GetRoadTileType(tile) == ROAD_TILE_NORMAL && (GetRoadBits(tile) == ROAD_X || GetRoadBits(tile) == ROAD_Y)) { |
893 GetRoadTileType(tile) == ROAD_TILE_NORMAL && (GetRoadBits(tile) == ROAD_X || GetRoadBits(tile) == ROAD_Y)) { |