(svn r3205) Some more uses for GB/SB

This commit is contained in:
tron
2005-11-16 13:11:28 +00:00
parent 8cebe2f607
commit ec57ef78a2
5 changed files with 24 additions and 21 deletions

View File

@@ -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);
}