From 8e6b55c9a09344090a0f00b2d49ca0c8de5dcede Mon Sep 17 00:00:00 2001 From: tron Date: Tue, 21 Feb 2006 18:15:59 +0000 Subject: (svn r3650) Fix braino in r3649, spotted by Mihamix --- road_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/road_cmd.c b/road_cmd.c index 902a2932d..3a1ef1a1f 100644 --- a/road_cmd.c +++ b/road_cmd.c @@ -34,7 +34,7 @@ static bool HasTileRoadAt(TileIndex tile, int i) case MP_STREET: b = _m[tile].m5; - switch (b & 0xF0) { + switch (GB(b, 4, 4)) { case 0: break; // normal road case 1: b = (b & 8 ? 5 : 10); break; // level crossing case 2: return (~b & 3) == i; // depot -- cgit v1.2.3-70-g09d2