src/console_cmds.cpp
changeset 7069 9c50360195ff
parent 7062 383e83c8d519
child 7386 c923fe11d489
equal deleted inserted replaced
7068:846986cf3a6e 7069:9c50360195ff
   140 	}
   140 	}
   141 
   141 
   142 	FOR_ALL_VEHICLES(v) {
   142 	FOR_ALL_VEHICLES(v) {
   143 		/* Code ripped from CmdStartStopTrain. Can't call it, because of
   143 		/* Code ripped from CmdStartStopTrain. Can't call it, because of
   144 		 * ownership problems, so we'll duplicate some code, for now */
   144 		 * ownership problems, so we'll duplicate some code, for now */
   145 		if (v->type == VEH_TRAIN)
       
   146 			v->u.rail.days_since_order_progr = 0;
       
   147 		v->vehstatus |= VS_STOPPED;
   145 		v->vehstatus |= VS_STOPPED;
   148 		InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, STATUS_BAR);
   146 		InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, STATUS_BAR);
   149 		InvalidateWindow(WC_VEHICLE_DEPOT, v->tile);
   147 		InvalidateWindow(WC_VEHICLE_DEPOT, v->tile);
   150 	}
   148 	}
   151 	return true;
   149 	return true;