diff options
author | rubidium <rubidium@openttd.org> | 2006-05-09 08:17:33 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2006-05-09 08:17:33 +0000 |
commit | 9b1bbf72ee7ebb545ba7dc0ea11a84fc18b11c45 (patch) | |
tree | 975779e5070a23a2c674c5848eaf2fef8b8d766a /elrail.c | |
parent | a0e387597ac53c810a24a01521aa3e802964e8d5 (diff) | |
download | openttd-9b1bbf72ee7ebb545ba7dc0ea11a84fc18b11c45.tar.xz |
(svn r4788) - Codechange: RAILTYPE_{NORMAL,ELECTRIC,...} and RAIL_TYPE_{NORMAL,SIGNAL,...} have nearly the same name, rename RAIL_TYPE_* to RAIL_TILE_* of extra clarity
Diffstat (limited to 'elrail.c')
-rw-r--r-- | elrail.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -76,9 +76,9 @@ static TrackBits GetRailTrackBitsUniversal(TileIndex t, byte *override) case MP_RAILWAY: if (GetRailType(t) != RAILTYPE_ELECTRIC) return 0; switch (GetRailTileType(t)) { - case RAIL_TYPE_NORMAL: case RAIL_TYPE_SIGNALS: + case RAIL_TILE_NORMAL: case RAIL_TILE_SIGNALS: return GetTrackBits(t); - case RAIL_TYPE_DEPOT_WAYPOINT: + case RAIL_TILE_DEPOT_WAYPOINT: if (GetRailTileSubtype(t) == RAIL_SUBTYPE_WAYPOINT) return GetRailWaypointBits(t); default: return 0; @@ -346,7 +346,7 @@ void DrawCatenary(const TileInfo *ti) { switch (GetTileType(ti->tile)) { case MP_RAILWAY: - if (GetRailTileType(ti->tile) == RAIL_TYPE_DEPOT_WAYPOINT && GetRailTileSubtype(ti->tile) == RAIL_SUBTYPE_DEPOT) { + if (GetRailTileType(ti->tile) == RAIL_TILE_DEPOT_WAYPOINT && GetRailTileSubtype(ti->tile) == RAIL_SUBTYPE_DEPOT) { const SortableSpriteStruct *sss = &CatenarySpriteData[WIRE_DEPOT_SW + ReverseDiagDir(GetRailDepotDirection(ti->tile))]; AddSortableSpriteToDraw( sss->image, ti->x + sss->x_offset, ti->y + sss->y_offset, sss->x_size, sss->y_size, sss->z_size, GetSlopeZ(ti->x, ti->y) + sss->z_offset); |