(svn r3353) Simplify the automatic length adjustment algorithm for replacing trains: Use the length of the train before the replacement as reference length
This commit is contained in:
@@ -78,14 +78,6 @@ typedef struct VehicleRail {
|
||||
TileIndex pbs_end_tile;
|
||||
Trackdir pbs_end_trackdir;
|
||||
|
||||
/**
|
||||
* stuff to figure out how long a train should be. Used by autoreplace
|
||||
* first byte holds the length of the shortest station. Updated each time order 0 is reached
|
||||
* last byte is the shortest station reached this round though the orders. It can be invalidated by
|
||||
* skip station and alike by setting it to 0. That way we will ensure that a complete loop is used to find the shortest station
|
||||
*/
|
||||
byte shortest_platform[2];
|
||||
|
||||
// Link between the two ends of a multiheaded engine
|
||||
Vehicle *other_multiheaded_part;
|
||||
} VehicleRail;
|
||||
|
||||
Reference in New Issue
Block a user