mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-31 03:12:41 +00:00
(svn r3957) -Fix: Correctly restore the roadside after roadworks are finished. Backport of r3680 from trunk
This commit is contained in:
parent
f470a87dea
commit
300aba48cc
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user