Changeset - r3985:fdbac7937e54
[Not reviewed]
master
0 1 0
bjarni - 18 years ago 2006-06-08 20:12:07
bjarni@openttd.org
(svn r5175) -Fix: [autoreplace] FS#186 autoreplaced trains can leave all wagons in depot
also fixed a serious typo in peter1138's comments
1 file changed with 4 insertions and 2 deletions:
0 comments (0 inline, 0 general)
train_cmd.c
Show inline comments
 
@@ -839,8 +839,10 @@ int CheckTrainStoppedInDepot(const Vehic
 
	for (; v != NULL; v = v->next) {
 
		/* This count is used by the depot code to determine the number of engines
 
		 * in the consist. Exclude articulated parts so that autoreplacing to
 
		 * engines with more articulated parts that before works correctly. */
 
		if (!IsArticulatedPart(v)) count++;
 
		 * engines with more articulated parts that before works correctly.
 
		 *
 
		 * Also skip counting rear ends of multiheaded engines */
 
		if (!IsArticulatedPart(v) && !(!IsTrainEngine(v) && IsMultiheaded(v))) count++;
 
		if (v->u.rail.track != 0x80 || v->tile != tile ||
 
				(IsFrontEngine(v) && !(v->vehstatus & VS_STOPPED))) {
 
			return -1;
0 comments (0 inline, 0 general)