File diff r12076:cdb45179e7bc → r12077:baf868e4baf0
src/vehicle_cmd.cpp
Show inline comments
 
@@ -67,7 +67,7 @@ CommandCost CmdStartStopVehicle(TileInde
 

	
 
	switch (v->type) {
 
		case VEH_TRAIN:
 
			if (v->vehstatus & VS_STOPPED && ((Train *)v)->tcache.cached_power == 0) return_cmd_error(STR_TRAIN_START_NO_CATENARY);
 
			if ((v->vehstatus & VS_STOPPED) && ((Train *)v)->tcache.cached_power == 0) return_cmd_error(STR_TRAIN_START_NO_CATENARY);
 
			break;
 

	
 
		case VEH_SHIP:
 
@@ -405,7 +405,7 @@ CommandCost CmdCloneVehicle(TileIndex ti
 
		}
 
	} while (v->type == VEH_TRAIN && (v = GetNextVehicle((Train *)v)) != NULL);
 

	
 
	if (flags & DC_EXEC && v_front->type == VEH_TRAIN) {
 
	if ((flags & DC_EXEC) && v_front->type == VEH_TRAIN) {
 
		/* for trains this needs to be the front engine due to the callback function */
 
		_new_vehicle_id = w_front->index;
 
	}