summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-02-21 18:15:59 +0000
committertron <tron@openttd.org>2006-02-21 18:15:59 +0000
commit5389e0e6d68a3956830a92db4f8379211c4f1034 (patch)
tree773f4de45d3ae987e9d00274c33f11d3e9557c76
parent6bf65d401bffc9e1e3781489f86cfab3e2fcf74d (diff)
downloadopenttd-5389e0e6d68a3956830a92db4f8379211c4f1034.tar.xz
(svn r3650) Fix braino in r3649, spotted by Mihamix
-rw-r--r--road_cmd.c2
1 files changed, 1 insertions, 1 deletions
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