diff options
author | tron <tron@openttd.org> | 2006-02-27 17:24:31 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-02-27 17:24:31 +0000 |
commit | c998cf0750028eca31bbadd3192d8a1064088c9a (patch) | |
tree | 25f9223fd255e8694128b204cb9024d8ae6cad99 | |
parent | 569b1939c6aaaddc8b78af040f480317b051674d (diff) | |
download | openttd-c998cf0750028eca31bbadd3192d8a1064088c9a.tar.xz |
(svn r3680) Fix some magic numbers which got damaged in r1768
-Fix: Correctly restore the roadside after roadworks are finished
-rw-r--r-- | road_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/road_cmd.c b/road_cmd.c index 320c71b9a..dbd7e812b 100644 --- a/road_cmd.c +++ b/road_cmd.c @@ -1045,7 +1045,7 @@ static void TileLoop_Road(TileIndex tile) !(DistanceManhattan(t->xy, tile) >= 8 && grp == 0) && (_m[tile].m5 == ROAD_Y || _m[tile].m5 == ROAD_X)) { if (GetTileSlope(tile, NULL) == 0 && EnsureNoVehicle(tile) && CHANCE16(1, 20)) { - _m[tile].m4 |= (GB(_m[tile].m4, 4, 3) <= 2 ? 7 : 6) << 4; + SB(_m[tile].m4, 4, 3, (GB(_m[tile].m4, 4, 3) <= 1 ? 6 : 7)); SndPlayTileFx(SND_21_JACKHAMMER, tile); CreateEffectVehicleAbove( |