(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:
tron
2005-12-29 12:42:59 +00:00
parent 901068fd6e
commit ed4b89ee36
24 changed files with 22 additions and 83 deletions

View File

@@ -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;