diff options
author | smatz <smatz@openttd.org> | 2008-04-03 19:55:40 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-04-03 19:55:40 +0000 |
commit | fcf4a7067d529d2f43d26be48cdc7daf395eddb1 (patch) | |
tree | 6e5ae7f6b1b5f40dbc7a0e75f50db327a96a8b37 /src/elrail.cpp | |
parent | b8e3bbe0396072f0574b3b335386762146fbff93 (diff) | |
download | openttd-fcf4a7067d529d2f43d26be48cdc7daf395eddb1.tar.xz |
(svn r12547) -Feature: invisibility options to make objects invisible instead of transparent
Diffstat (limited to 'src/elrail.cpp')
-rw-r--r-- | src/elrail.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/elrail.cpp b/src/elrail.cpp index c126b80dc..3637f0ba5 100644 --- a/src/elrail.cpp +++ b/src/elrail.cpp @@ -434,6 +434,9 @@ void DrawCatenary(const TileInfo *ti) { if (_patches.disable_elrails) return; + /* Do not draw catenary if it is invisible */ + if (IsInvisibilitySet(TO_CATENARY)) return; + if (MayHaveBridgeAbove(ti->tile) && IsBridgeAbove(ti->tile)) { TileIndex head = GetNorthernBridgeEnd(ti->tile); |