forked from mirror/OpenTTD
(svn r1536) Move GET_TILEHEIGHT, GET_TILETYPE and IS_TILETYPE to map.h, turn them into inline functions and add some asserts
This commit is contained in:
@@ -67,7 +67,7 @@ static void BuildRoadOutsideStation(uint tile, int direction)
|
||||
static const byte _roadbits_by_dir[4] = {2,1,8,4};
|
||||
tile += TileOffsByDir(direction);
|
||||
// if there is a roadpiece just outside of the station entrance, build a connecting route
|
||||
if (IS_TILETYPE(tile, MP_STREET) && !(_map5[tile]&0x20)) {
|
||||
if (IsTileType(tile, MP_STREET) && !(_map5[tile] & 0x20)) {
|
||||
DoCommandP(tile, _roadbits_by_dir[direction], 0, NULL, CMD_BUILD_ROAD);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user