Changeset - r3929:293b455766c4
[Not reviewed]
master
0 1 0
celestar - 18 years ago 2006-06-01 09:43:39
celestar@openttd.org
(svn r5064) -Fix: Remove stay debug stuff from lat commit. (thanks peter1138)
1 file changed with 0 insertions and 1 deletions:
0 comments (0 inline, 0 general)
train_cmd.c
Show inline comments
 
@@ -331,13 +331,12 @@ static int GetTrainAcceleration(Vehicle 
 
	max_speed += (max_speed / 2) * v->u.rail.railtype;
 

	
 
	if (IsTileType(v->tile, MP_STATION) && IsFrontEngine(v)) {
 
		if (TrainShouldStop(v, v->tile)) {
 
			uint station_length = GetPlatformLength(v->tile, DirToDiagDir(v->direction));
 
			int delta_v;
 
			DEBUG(misc, 0) ("Length: %d", station_length);
 

	
 
			max_speed = 120;
 

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