FS#184 - Erronous train reversal on waypoints

Attached to Project: OpenTTD
Opened by Darkvater (Darkvater) - Tuesday, 23 May 2006, 12:12 GMT
Type Bug
Category Core
Status Closed
Assigned To No-one
Operating System All
Severity Medium
Priority Normal
Reported Version trunk
Due in Version 0.4.8
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


Look at the attached savegame. With the difficulty setting set to 'train reversal: at end of line and at stations' trains turn around at waypoints.

NPF: train turns around at the first and last waypoints instead of going to the end of the line. So in the attached savegame train turns around when it reaches waypoint 4 in its orders or 1. For all others it goes through.
NTP: train only turns around when it reaches its target waypoint and does so for EVERY waypoint. So train goes 1--S--2--S--3--S--4--1--S

Trains should under no circumstances turn around at waypoints. Also happens in 0.4.7
This task depends upon

This task blocks these from closing
 FS#185 - Randomness in NTP 
Closed by  Peter Nelson (peter1138)
Friday, 02 June 2006, 13:16 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in r5071
Comment by Peter Nelson (peter1138) - Thursday, 01 June 2006, 09:40 GMT
This patch stops a train reversing when it checks the next order if the last order was a waypoint. It also involves a little code duffing which may be applied first...