(svn r3680) Fix some magic numbers which got damaged in r1768

-Fix: Correctly restore the roadside after roadworks are finished
This commit is contained in:
tron 2006-02-27 17:24:31 +00:00
parent 3f60ef07b2
commit 263741bf9b
1 changed files with 1 additions and 1 deletions

View File

@ -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(