Changeset - r1652:935cb0ece8a9
[Not reviewed]
master
0 1 0
truelight - 19 years ago 2005-04-06 15:39:18
truelight@openttd.org
(svn r2156) -Fix: in revision 2104 someone forgot to add a very important check in
GetPrevVehicleInChain; this caused some nasty bugs in depots, like
wagons without engines complain about not being stopped, and stuff like
that. Hopefully this fixes those problems. With a big tnx to BJH for his
perfect demo!
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
vehicle.c
Show inline comments
 
@@ -358,7 +358,7 @@ Vehicle *GetPrevVehicleInChain(const Veh
 
{
 
	Vehicle *u;
 

	
 
	FOR_ALL_VEHICLES(u) if (u->next == v) return u;
 
	FOR_ALL_VEHICLES(u) if (u->type == VEH_Train && u->next == v) return u;
 

	
 
	return NULL;
 
}
0 comments (0 inline, 0 general)