changeset 3067 | 49f7be955db4 |
parent 3066 | 26c43ab051b8 |
child 3068 | c4ca7cecce7c |
--- a/road_cmd.c Thu Feb 23 07:26:49 2006 +0000 +++ b/road_cmd.c Thu Feb 23 07:31:36 2006 +0000 @@ -48,10 +48,10 @@ (~(_m[tile].m5 - 0x43) & 3) == i; case MP_TUNNELBRIDGE: - mask = GetRoadBitsByTile(tile); - b = 10; if (mask & 1) break; - b = 5; if (mask & 2) break; - return false; + // bail out, if not a bridge middle part with road underneath + if ((_m[tile].m5 & 0xF8) != 0xE8) return false; + // road direction perpendicular to bridge + b = (_m[tile].m5 & 0x01) ? 10 : 5; default: return false;