Changeset - r1057:59e54a85a034
[Not reviewed]
master
0 1 0
Celestar - 20 years ago 2005-01-18 16:01:35
celestar@openttd.org
(svn r1558) -Fix: [ 1104350 ] Crashed trains do not initiate the lost vehicle
message anymore
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
train_cmd.c
Show inline comments
 
@@ -2737,25 +2737,25 @@ void OnNewDay_Train(Vehicle *v)
 
	TileIndex tile;
 

	
 
	if ((++v->day_counter & 7) == 0)
 
		DecreaseVehicleValue(v);
 

	
 
	if (v->subtype == 0) {
 
		CheckVehicleBreakdown(v);
 
		AgeVehicle(v);
 

	
 
		CheckIfTrainNeedsService(v);
 

	
 
		// check if train hasn't advanced in its order list for a set number of days
 
		if (_patches.lost_train_days && v->num_orders && !(v->vehstatus & VS_STOPPED) && ++v->u.rail.days_since_order_progr >= _patches.lost_train_days && v->owner == _local_player) {
 
		if (_patches.lost_train_days && v->num_orders && !(v->vehstatus & (VS_STOPPED | VS_CRASHED) ) && ++v->u.rail.days_since_order_progr >= _patches.lost_train_days && v->owner == _local_player) {
 
			v->u.rail.days_since_order_progr = 0;
 
			SetDParam(0, v->unitnumber);
 
			AddNewsItem(
 
				STR_TRAIN_IS_LOST,
 
				NEWS_FLAGS(NM_SMALL, NF_VIEWPORT|NF_VEHICLE, NT_ADVICE, 0),
 
				v->index,
 
				0);
 
		}
 

	
 
		CheckOrders(v->index, OC_INIT);
 

	
 
		/* update destination */
0 comments (0 inline, 0 general)