summaryrefslogtreecommitdiff
path: root/rail_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-11-16 13:11:28 +0000
committertron <tron@openttd.org>2005-11-16 13:11:28 +0000
commitec57ef78a21fc57f752e1ee2c353b42da663f007 (patch)
tree658be9e3a7c385d16ddddacc093d3d9fe27855d0 /rail_gui.c
parent8cebe2f607d65de4df376bb5bc4f3caac62a2616 (diff)
downloadopenttd-ec57ef78a21fc57f752e1ee2c353b42da663f007.tar.xz
(svn r3205) Some more uses for GB/SB
Diffstat (limited to 'rail_gui.c')
-rw-r--r--rail_gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rail_gui.c b/rail_gui.c
index 415498958..800371a73 100644
--- a/rail_gui.c
+++ b/rail_gui.c
@@ -85,8 +85,8 @@ static void PlaceExtraDepotRail(TileIndex tile, uint16 extra)
{
byte b = _m[tile].m5;
- if (b & 0xC0 || !(b & (extra >> 8)))
- return;
+ if (GB(b, 6, 2) != RAIL_TYPE_NORMAL >> 6) return;
+ if (!(b & (extra >> 8))) return;
DoCommandP(tile, _cur_railtype, extra & 0xFF, NULL, CMD_BUILD_SINGLE_RAIL | CMD_AUTO | CMD_NO_WATER);
}