equal
deleted
inserted
replaced
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; |