mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-04 05:15:21 +00:00
(svn r10283) -Fix [FS#913]: catenary was drawn on bridges when elrail was disabled. Patch by B. N. SmatZ!.
This commit is contained in:
parent
60f0610a85
commit
a56661fcc1
@ -395,6 +395,8 @@ static void DrawCatenaryOnBridge(const TileInfo *ti)
|
||||
|
||||
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 @@ void DrawCatenary(const TileInfo *ti)
|
||||
DrawCatenaryOnBridge(ti);
|
||||
}
|
||||
}
|
||||
if (_patches.disable_elrails) return;
|
||||
|
||||
switch (GetTileType(ti->tile)) {
|
||||
case MP_RAILWAY:
|
||||
|
Loading…
Reference in New Issue
Block a user