road_gui.c
changeset 1035 812f837ee03f
parent 987 551193c150d9
child 1072 74cd9150d473
equal deleted inserted replaced
1034:e761d474e204 1035:812f837ee03f
    65 static void BuildRoadOutsideStation(uint tile, int direction)
    65 static void BuildRoadOutsideStation(uint tile, int direction)
    66 {
    66 {
    67 	static const byte _roadbits_by_dir[4] = {2,1,8,4};
    67 	static const byte _roadbits_by_dir[4] = {2,1,8,4};
    68 	tile += TileOffsByDir(direction);
    68 	tile += TileOffsByDir(direction);
    69 	// if there is a roadpiece just outside of the station entrance, build a connecting route
    69 	// if there is a roadpiece just outside of the station entrance, build a connecting route
    70 	if (IS_TILETYPE(tile, MP_STREET) && !(_map5[tile]&0x20)) {
    70 	if (IsTileType(tile, MP_STREET) && !(_map5[tile] & 0x20)) {
    71 		DoCommandP(tile, _roadbits_by_dir[direction], 0, NULL, CMD_BUILD_ROAD);
    71 		DoCommandP(tile, _roadbits_by_dir[direction], 0, NULL, CMD_BUILD_ROAD);
    72 	}
    72 	}
    73 }
    73 }
    74 
    74 
    75 void CcRoadDepot(bool success, uint tile, uint32 p1, uint32 p2)
    75 void CcRoadDepot(bool success, uint tile, uint32 p1, uint32 p2)