Mercurial > hg > openttd
changeset 7020:5b067f8530bf draft
(svn r10283) -Fix [FS#913]: catenary was drawn on bridges when elrail was disabled. Patch by B. N. SmatZ!.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Fri, 22 Jun 2007 21:48:41 +0000 |
parents | 4dd485dafed0 |
children | 3205e007b3ec |
files | src/elrail.cpp |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/elrail.cpp +++ b/src/elrail.cpp @@ -395,6 +395,8 @@ void DrawCatenary(const TileInfo *ti) { + if (_patches.disable_elrails) return; + if (MayHaveBridgeAbove(ti->tile) && IsBridgeAbove(ti->tile)) { TileIndex head = GetNorthernBridgeEnd(ti->tile); @@ -402,7 +404,6 @@ DrawCatenaryOnBridge(ti); } } - if (_patches.disable_elrails) return; switch (GetTileType(ti->tile)) { case MP_RAILWAY: