Changeset - r1676:f80a89c80bf5
[Not reviewed]
master
0 1 0
celestar - 20 years ago 2005-04-11 14:59:06
celestar@openttd.org
(svn r2180) -Fix: Deceleration code now only takes into account rail station tiles for computing the remaining distance
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
train_cmd.c
Show inline comments
 
@@ -154,7 +154,7 @@ static int GetTrainAcceleration(Vehicle 
 
			do {
 
				station_length++;
 
				tile = TILE_ADD(tile, TileOffsByDir(v->direction / 2));
 
			} while (IsTileType(tile, MP_STATION));
 
			} while (IsTrainStationTile(tile) && (_map5[tile] & 1) == (_map5[v->tile] & 1));
 

	
 
			delta_v = v->cur_speed / (station_length + 1);
 
			if (v->max_speed > (v->cur_speed - delta_v))
0 comments (0 inline, 0 general)