diff options
author | skidd13 <skidd13@openttd.org> | 2007-11-25 15:35:25 +0000 |
---|---|---|
committer | skidd13 <skidd13@openttd.org> | 2007-11-25 15:35:25 +0000 |
commit | bdc7fd2d765b84dc17415ecda0bef31471befa91 (patch) | |
tree | 169a43d7faea93613e95fcd0c3221376b8fbfc11 /src/road_cmd.cpp | |
parent | 2bf2be987d414e2d80a20b7ace9ad9bde90fc7b8 (diff) | |
download | openttd-bdc7fd2d765b84dc17415ecda0bef31471befa91.tar.xz |
(svn r11523) -Codechange: Move the CHANCE macros to core/random_func.cpp cause they depend on Random()
-Codechange: Convert the CHANCE macros to functions and rename them fitting to the naming style
Diffstat (limited to 'src/road_cmd.cpp')
-rw-r--r-- | src/road_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp index e0e90cfb2..d8d8e37ce 100644 --- a/src/road_cmd.cpp +++ b/src/road_cmd.cpp @@ -1243,7 +1243,7 @@ static void TileLoop_Road(TileIndex tile) if (t->road_build_months != 0 && (DistanceManhattan(t->xy, tile) < 8 || grp != 0) && GetRoadTileType(tile) == ROAD_TILE_NORMAL && CountBits(GetAllRoadBits(tile)) > 1 ) { - if (GetTileSlope(tile, NULL) == SLOPE_FLAT && EnsureNoVehicleOnGround(tile) && CHANCE16(1, 40)) { + if (GetTileSlope(tile, NULL) == SLOPE_FLAT && EnsureNoVehicleOnGround(tile) && Chance16(1, 40)) { StartRoadWorks(tile); SndPlayTileFx(SND_21_JACKHAMMER, tile); |