src/npf.cpp
changeset 9059 04edde3eb0c6
parent 9006 f68ac871be5c
child 9112 ec6800eaa340
equal deleted inserted replaced
9058:b9c3fec968b8 9059:04edde3eb0c6
   510 }
   510 }
   511 
   511 
   512 /** Tests if a tile is a road tile with a single tramtrack (tram can reverse) */
   512 /** Tests if a tile is a road tile with a single tramtrack (tram can reverse) */
   513 static DiagDirection GetSingleTramBit(TileIndex tile)
   513 static DiagDirection GetSingleTramBit(TileIndex tile)
   514 {
   514 {
   515 	if (IsTileType(tile, MP_ROAD) && GetRoadTileType(tile) == ROAD_TILE_NORMAL) {
   515 	if (IsNormalRoadTile(tile)) {
   516 		RoadBits rb = GetRoadBits(tile, ROADTYPE_TRAM);
   516 		RoadBits rb = GetRoadBits(tile, ROADTYPE_TRAM);
   517 		switch (rb) {
   517 		switch (rb) {
   518 			case ROAD_NW: return DIAGDIR_NW;
   518 			case ROAD_NW: return DIAGDIR_NW;
   519 			case ROAD_SW: return DIAGDIR_SW;
   519 			case ROAD_SW: return DIAGDIR_SW;
   520 			case ROAD_SE: return DIAGDIR_SE;
   520 			case ROAD_SE: return DIAGDIR_SE;