diff options
author | celestar <celestar@openttd.org> | 2006-03-30 13:06:16 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2006-03-30 13:06:16 +0000 |
commit | 79d594313e1b183aead3c22c98d724d533d73060 (patch) | |
tree | 0e703ee29a3f2fd20ab1f21df93a6d14a25d2a42 | |
parent | 45f65b1788f9f8cbc05b290ec2eac195f2581193 (diff) | |
download | openttd-79d594313e1b183aead3c22c98d724d533d73060.tar.xz |
(svn r4177) -Fix: GetRailTrackBitsUniversal needs Trackbits, not Track. While at it, remove an unused variable
-rw-r--r-- | elrail.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -103,7 +103,7 @@ static TrackBits GetRailTrackBitsUniversal(TileIndex t, byte *override) return GetCrossingRailBits(t); case MP_STATION: if (GetRailType(t) != RAILTYPE_ELECTRIC) return 0; - return GetRailStationTrack(t); + return TrackToTrackBits(GetRailStationTrack(t)); default: return 0; } @@ -158,7 +158,6 @@ static void DrawCatenaryRailway(const TileInfo *ti) } for (i = DIAGDIR_NE; i < DIAGDIR_END; i++) { - extern const TileIndexDiffC _tileoffs_by_dir[]; TileIndex neighbour = ti->tile + TileOffsByDir(i); uint foundation = 0; int k; |