src/npf.cpp
changeset 8563 13b1a41e46f1
parent 8510 1c0456a2feaf
child 8616 fd862a55c47f
equal deleted inserted replaced
8562:7419166c16bd 8563:13b1a41e46f1
   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;