Mercurial > hg > openttd
changeset 3091:44391f2650de draft
(svn r3680) Fix some magic numbers which got damaged in r1768
-Fix: Correctly restore the roadside after roadworks are finished
author | tron <tron@openttd.org> |
---|---|
date | Mon, 27 Feb 2006 17:24:31 +0000 |
parents | cb04711f3e61 |
children | d095fbe4fa83 |
files | road_cmd.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/road_cmd.c +++ b/road_cmd.c @@ -1045,7 +1045,7 @@ !(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(