Changeset - r1554:5b10b362b3da
[Not reviewed]
master
0 1 0
truelight - 20 years ago 2005-03-25 12:07:26
truelight@openttd.org
(svn r2058) -Fix: hopefully this fixes the reverse-train-in-depot-bugs (plural)
1 file changed with 5 insertions and 0 deletions:
0 comments (0 inline, 0 general)
train_cmd.c
Show inline comments
 
@@ -1083,15 +1083,20 @@ static void ReverseTrainSwapVeh(Vehicle 
 

	
 
		SwapTrainFlags(&a->u.rail.flags, &b->u.rail.flags);
 

	
 
		/* update other vars */
 
		UpdateVarsAfterSwap(a);
 
		UpdateVarsAfterSwap(b);
 

	
 
		VehicleEnterTile(a, a->tile, a->x_pos, a->y_pos);
 
		VehicleEnterTile(b, b->tile, b->x_pos, b->y_pos);
 
	} else {
 
		if (!(a->u.rail.track & 0x80)) a->direction ^= 4;
 
		UpdateVarsAfterSwap(a);
 

	
 
		VehicleEnterTile(a, a->tile, a->x_pos, a->y_pos);
 
	}
 
}
 

	
 
/* Check if the vehicle is a train and is on the tile we are testing */
 
static void *TestTrainOnCrossing(Vehicle *v, void *data)
 
{
0 comments (0 inline, 0 general)