summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-02-27 17:24:31 +0000
committertron <tron@openttd.org>2006-02-27 17:24:31 +0000
commit263741bf9b247083d9d675741380efdf02bb0bcb (patch)
tree25f9223fd255e8694128b204cb9024d8ae6cad99
parent3f60ef07b20ca87121f84ebe77cdad000fd4d5ad (diff)
downloadopenttd-263741bf9b247083d9d675741380efdf02bb0bcb.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.c2
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(