Changeset - r6844:9474c60d529d
[Not reviewed]
master
0 1 0
rubidium - 17 years ago 2007-06-10 20:27:28
rubidium@openttd.org
(svn r10084) -Fix [FS#855]: reversing a train when loading at a station crashed.
1 file changed with 7 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/economy.cpp
Show inline comments
 
@@ -1468,6 +1468,13 @@ static void LoadUnloadVehicle(Vehicle *v
 
		return;
 
	}
 

	
 
	if (v->type == VEH_TRAIN && !IsTileType(v->tile, MP_STATION)) {
 
		/* The train reversed in the station. Take the "easy" way
 
		 * out and let the train just leave as it always did. */
 
		SETBIT(v->vehicle_flags, VF_LOADING_FINISHED);
 
		return;
 
	}
 

	
 
	int unloading_time = 0;
 
	Vehicle *u = v;
 
	int result = 0;
0 comments (0 inline, 0 general)