mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r4479) -Fix (FS#90) electric engines (or rather their pantographs) no longer emit sparks when engine is pulled on convrail (MeusH)
P.S. Credit for previous commit goes to the bug reporter, nycom, who submitted the fix as well.
This commit is contained in:
parent
ffc04f0889
commit
cc29d3dcb4
@ -1954,8 +1954,10 @@ static void HandleLocomotiveSmokeCloud(const Vehicle* v)
|
||||
}
|
||||
|
||||
// No smoke in depots or tunnels
|
||||
if (IsTileDepotType(v->tile, TRANSPORT_RAIL) || IsTunnelTile(v->tile))
|
||||
continue;
|
||||
if (IsTileDepotType(v->tile, TRANSPORT_RAIL) || IsTunnelTile(v->tile)) continue;
|
||||
|
||||
// No sparks for electric vehicles on nonelectrified tracks
|
||||
if (!HasPowerOnRail(v->u.rail.railtype, GetTileRailType(v->tile, GetVehicleTrackdir(v)))) continue;
|
||||
|
||||
if (effect_type == 0) {
|
||||
// Use default effect type for engine class.
|
||||
|
Loading…
Reference in New Issue
Block a user