Changeset - r1961:7949b074d614
[Not reviewed]
master
0 1 0
hackykid - 19 years ago 2005-06-21 14:50:08
hackykid@openttd.org
(svn r2467) - Fix: [newgrf] Prevent trains with shorter wagons breaking apart when reversing in some cases. (Therax)
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
train_cmd.c
Show inline comments
 
@@ -2640,22 +2640,22 @@ static void *CheckVehicleAtSignal(Vehicl
 
	}
 
	return NULL;
 
}
 

	
 
static void TrainController(Vehicle *v)
 
{
 
	Vehicle *prev = NULL;
 
	Vehicle *prev;
 
	GetNewVehiclePosResult gp;
 
	uint32 r, tracks,ts;
 
	int i, enterdir, newdir, dir;
 
	byte chosen_dir;
 
	byte chosen_track;
 
	byte old_z;
 

	
 
	/* For every vehicle after and including the given vehicle */
 
	for (; v != NULL; prev = v, v = v->next) {
 
	for (prev = GetPrevVehicleInChain(v); v != NULL; prev = v, v = v->next) {
 
		BeginVehicleMove(v);
 

	
 
		if (v->u.rail.track != 0x40) {
 
			/* Not inside tunnel */
 
			if (GetNewVehiclePos(v, &gp)) {
 
				/* Staying in the old tile */
0 comments (0 inline, 0 general)