From 300aba48cc5d9b7dec743a4a32770a33a1c6fa05 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Sat, 18 Mar 2006 15:29:24 +0000 Subject: [PATCH] (svn r3957) -Fix: Correctly restore the roadside after roadworks are finished. Backport of r3680 from trunk --- road_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/road_cmd.c b/road_cmd.c index 5de5924019..2dcb7b609c 100644 --- a/road_cmd.c +++ b/road_cmd.c @@ -1009,7 +1009,7 @@ static void TileLoop_Road(TileIndex tile) !(DistanceManhattan(t->xy, tile) >= 8 && grp == 0) && (_m[tile].m5==5 || _m[tile].m5==10)) { 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(