OpenTTD

Tasklist

FS#1761 - Omit unnecessary wires on elrail

Attached to Project: OpenTTD
Opened by Johannes E. Krause (Eddi) - Sunday, 10 February 2008, 21:55 GMT
Last edited by Michael Lutz (michi_cc) - Thursday, 05 February 2009, 01:34 GMT
Type Patch
Category Vehicles → Electrified rails
Status Closed
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

When unelectrified rail crosses with electrified rail, there are useless wires on the branching side of the switches, this patch makes these wires disappear.

there are some special cases to discuss, when someone makes the elrail deliberately end in the middle of nowhere (i.e. not at the track end, nor at a station), then the wire ends one tile too early

also lost trains may enter an elrail bit that has no catenary drawn

r12066
This task depends upon

Closed by  Michael Lutz (michi_cc)
Thursday, 05 February 2009, 01:34 GMT
Reason for closing:  Implemented
Additional comments about closing:  In r15347.
Comment by Johannes E. Krause (Eddi) - Monday, 11 February 2008, 00:51 GMT
fixed the case where all trackbits would be removed, but some cases still need special handling.

IMHO, all those cases are nonsensical track combinations anyway, so i'm not sure if they are worth fixing.
Comment by Johannes E. Krause (Eddi) - Monday, 11 February 2008, 01:10 GMT
there is now a problem with pylon placement in some instances, because it does not take into account masked out bits
Comment by Johannes E. Krause (Eddi) - Monday, 11 February 2008, 22:39 GMT
i fixed the pylon placement, i think ;)

PCP are the points where wires need support by a pylon, those use the "wirebits"
PPP are the directions which side of the track the pylon is put on, this needs to use the "trackbits"

Loading...